manage.py syncdb breaks for some proxy models
|Reported by:||jds||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
If the proxy model is in an application listed before the parent model's application, the table does not get created.
I have an application, testapp, with this testapp/models.py:
from django.contrib.auth.models import User class MyUser(User): class Meta: proxy = True
INSTALLED_APPS has testapp listed before django.contrib.auth. The auth_user table does not get created.
This is related to #11428. The patch shows where the issue is.
If this is intended behavior, a small addition to the Available Settings > INSTALLED_APPS documentation would clear this up.
Change History (10)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|