Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_login_url to the PermissionRequiredMixin #775

Open
iaggocapitanio1 opened this issue May 2, 2022 · 2 comments
Open

Add get_login_url to the PermissionRequiredMixin #775

iaggocapitanio1 opened this issue May 2, 2022 · 2 comments

Comments

@iaggocapitanio1
Copy link

need to add this method

@ad-m
Copy link
Member

ad-m commented May 3, 2022

We keep consistency with https://docs.djangoproject.com/en/4.0/topics/auth/default/#the-loginrequired-mixin in that aspect.

You might use @Property decorator to achieve a similar result.

@kmmbvnr
Copy link

kmmbvnr commented May 7, 2024

Actually Django's LoginRequiredMixin inherited from AccessMixin that provides get_login_url method

https://github.com/django/django/blob/main/django/contrib/auth/mixins.py#L21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants