Open clarson99 opened 1 year ago
@clarson99
Thanks for the feedback.
AUTH_USER_MODEL
there will need to be a way of indicating which one.For number 2, would this be a reasonable work around?
If there is only one user model
a. choose it by adding AUTH_USER_MODEL = 'users.user'
if there are multiple user models a. add a comment like '# TODO there were multiple user models found, we chose the first one, please uncomment the appropriate model`
b. add the first model by adding AUTH_USER_MODEL = 'users.user'
c. add the remaining models, but comment them out like: # AUTH_USER_MODEL = 'users2.user2'
This would at least leave a clue about what is happening, it would ensure the app starts and runs without errors, and lastly you would have to add confusing features to the UI.
Issue 1 should now be fixed and deployed to djangobuilder.io
When you create a model that extends AbstractUser there 2 issues:
models.py
is missingfrom django.contrib.auth.models import AbstractUser
.settings.py
is missing something like thisAUTH_USER_MODEL = 'users.user'
This causes migrations to fail.