You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrations for'people':
people/migrations/0002_test.py
- Create model Test
Migrations for'social_django':
.venv/lib/python3.11/site-packages/social_django/migrations/0016_test2.py
- Create model Test2
Any other comments?
Why is that?
What will happen if social_django also creates a migration no. 16?
I need to encrypt uid field and I am not sure that creating a migration in social_django app helps. Is this intended?
My solution is to create AbstractuserSocialAuthfrom scratch.
The text was updated successfully, but these errors were encountered:
raratiru
changed the title
Subclassing AbstractUserSocialAuth creates migration i social_django app.
Subclassing AbstractUserSocialAuth creates migration in social_django app.
Sep 4, 2023
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.The text was updated successfully, but these errors were encountered: