Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#20873 closed Bug (fixed)

Model options assumes incorrectly that model classes resides in models-module

Reported by: Jani Tiainen Owned by: nobody
Component: Database layer (models, ORM) Version: 1.5
Severity: Normal Keywords: app-loading
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If you use splitted models, like having a models in submodules of models Model._meta.installed will get always false.

Models installed in app/ will get correctly Model._meta.installed flag set as a True.

Attachments (1)

django-20873.tar.gz (5.2 KB) - added by Jani Tiainen 3 years ago.
Test case

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by Jani Tiainen

Attachment: django-20873.tar.gz added

Test case

comment:1 Changed 3 years ago by Ramiro Morales

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 2 years ago by Claude Paroz

Resolution: fixed
Status: newclosed

comment:3 Changed 2 years ago by Aymeric Augustin

Keywords: app-loading added
Note: See TracTickets for help on using tickets.
Back to Top