Skip to content

Commit 0d4cc4d

Browse files
Add swappable user model to migration
1 parent 268fc15 commit 0d4cc4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fitapp/migrations/0001_initial.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77

88
class Migration(migrations.Migration):
9+
10+
UserModel = getattr(settings, 'FITAPP_USER_MODEL', 'auth.User')
11+
912
dependencies = [
1013
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1114
]

0 commit comments

Comments
 (0)