-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
AbstractUserSocialAuth and user field related_name #925
Comments
Another question regarding https://github.com/omab/python-social-auth/blob/master/social/apps/django_app/default/models.py#L50 Why is the child class hardcoded in the parent abstract class? except cls.DoesNotExist: Like it is in the mixin which is the base for AbstractUserSocialAuth? |
I've created python-social-auth/social-app-django#7 to track the needed work to fix this (second issue, |
The override should also override the user field and the corresponding related name to avoid the clash, I've removed the usage of |
Is there an alternative approach that is a bit more production-friendly? |
I am getting a problem with the user field of the AbstractUserSocialAuth: if I try to create an alternative UserSocialAuth inheriting AbstractUserSocialAuth the related_name of the user fields will clash because both will inherit the related_name from AbstractUserSocialAuth:
What is the expected way to override this class? As per Django's documentation the related_name should not be hardcoded in an abstract class, maybe I'm missing something, can you help?
The text was updated successfully, but these errors were encountered: