Skip to content

AuthenticatedHttpRequest use for LoginRequiredMixin #1886

@H4rryK4ne

Description

@H4rryK4ne

As described in https://github.com/typeddjango/django-stubs#how-can-i-create-a-httprequest-thats-guaranteed-to-have-an-authenticated-user one could use AuthenticatedHttpRequest annotate request in function views with @login_required decorators.

But how can this be adapted to class views with LoginRequiredMixin?

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions