Open raratiru opened 1 year ago
If this is intended, it would be nice to have the following methods to an InProjectMixin
in order to avoid unnecessary code duplication.
https://github.com/python-social-auth/social-app-django/blob/199435bce649b1fbcc48891bd98137332a84e2c5/social_django/models.py#L55-L70
Expected behaviour
Subclass
AbstractUserSocialAuth
in my app and create a migration in my app folder.Actual behaviour
A migration is created in
social_django/migrations
folder.schema
is a local application with an abstract model to compare the behavior.AbstractUserSocialAuth
requires to override theuser
attribute in order to avoidrelated_name
collision` so:slug
attribute inBaseSlug
to be in par:What are the steps to reproduce this issue?
Input clear steps to reproduce the issue for a maintainer.
people
is the app with the custom user model.people/models.py:
./manage.py makemigrations
Any logs, error output, etc?
Result:
Any other comments?
social_django
also creates a migration no. 16?I need to encrypt
uid
field and I am not sure that creating a migration insocial_django
app helps. Is this intended?My solution is to create
AbstractuserSocialAuth
from scratch.