Opened 15 years ago

Closed 11 years ago

Last modified 11 years ago

#11605 closed Bug (worksforme)

manage.py syncdb breaks for some proxy models

Reported by: jds Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Attachments (1)

patch.diff (1.2 KB ) - added by jds 15 years ago.
agains 11368

Download all attachments as: .zip

Change History (10)

by jds, 15 years ago

Attachment: patch.diff added

agains 11368

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by pcardune, 15 years ago

Just encountered this problem myself.

comment:3 by Thejaswi Puthraya, 15 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:4 by Julien Phalip, 14 years ago

Severity: Normal
Type: Bug

comment:5 by Julien Phalip, 14 years ago

Needs tests: set

comment:6 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:7 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:8 by nott, 11 years ago

Resolution: worksforme
Status: newclosed

comment:9 by nott, 11 years ago

Works for me on master.

Note: See TracTickets for help on using tickets.
Back to Top