manage.py syncdb breaks for some proxy models
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)
Triage Stage: |
Unreviewed → Accepted
|
Component: |
Uncategorized → Database layer (models, ORM)
|
Severity: |
→ Normal
|
Type: |
→ Bug
|
Resolution: |
→ worksforme
|
Status: |
new → closed
|
agains 11368