Skip to content

Commit

Permalink
Add swappable user model to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-f-perez committed Oct 2, 2018
1 parent 268fc15 commit 0d4cc4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fitapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@


class Migration(migrations.Migration):

UserModel = getattr(settings, 'FITAPP_USER_MODEL', 'auth.User')

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
Expand Down

0 comments on commit 0d4cc4d

Please sign in to comment.