-
Notifications
You must be signed in to change notification settings - Fork 583
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
fix: Use TypeVar for type-hinting of the user parameter #1496
Conversation
Thank you very much for this PR! Quick question for my understanding: Why did you not use |
I wanted to know if we can be more specific, and Django recommendation for custom auth user model is to inherit from AbstractBaseUser, AbstractBaseUser so I thought it should work for the majority of the cases. But since it's just a recommendation, maybe I should use the TypeVar and allow more flexibility? What do you think? |
Maybe with a |
@fsbraun How about using |
@payamnj That sounds good to me! Maybe with a comment that a user model is expected but not imported...! |
…r in cache module (django-cms#1495)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Great work!
@fsbraun can we merge this change and publish a new version? |
@payamnj Version 3.2.3 is on its way! Have you joined the django CMS discord community yet? https://discord-main-channel.django-cms.org/ There's a #django-filer channel, too. |
@fsbraun No I have not yet, I will join. Thank you 🙏 |
Description
Using the AbstractBaseUser for type-hinting the auth user parameter to fix the problem mentioned in issue #1495
Related resources
Checklist
master
Slack to find a “pr review buddy” who is going to review my pull request.