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)
Changed 6 years ago by jds
comment:1 Changed 6 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:3 Changed 6 years ago by thejaswi_puthraya
- Component changed from Uncategorized to Database layer (models, ORM)
comment:8 Changed 14 months ago by nott
- Resolution set to worksforme
- Status changed from new to closed