[Django] #20873: Model options assumes incorrectly that model classes resides in models-module

13 views
Skip to first unread message

Django

unread,
Aug 7, 2013, 3:23:54 AM8/7/13
to django-...@googlegroups.com
#20873: Model options assumes incorrectly that model classes resides in models-
module
----------------------------------------------+--------------------
Reporter: jtiai | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
If you use splitted models, like having a models in submodules of models
Model._meta.installed will get always false.

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

--
Ticket URL: <https://code.djangoproject.com/ticket/20873>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 7, 2013, 3:54:01 PM8/7/13
to django-...@googlegroups.com
#20873: Model options assumes incorrectly that model classes resides in models-
module
-------------------------------------+-------------------------------------

Reporter: jtiai | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.5
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by ramiro):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

See
https://github.com/django/django/blob/07876cf02b6db453ca0397c29c225668872fa96d/django/db/models/options.py#L79

Thanks jtiai for the report and test case.

--
Ticket URL: <https://code.djangoproject.com/ticket/20873#comment:1>

Django

unread,
May 22, 2014, 9:46:26 AM5/22/14
to django-...@googlegroups.com
#20873: Model options assumes incorrectly that model classes resides in models-
module
-------------------------------------+-------------------------------------
Reporter: jtiai | Owner: nobody
Type: Bug | Status: closed

Component: Database layer | Version: 1.5
(models, ORM) | Resolution: fixed

Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by claudep):

* status: new => closed
* resolution: => fixed


Comment:

Fixed by [7eea9bf30399e9a49fe164851c6132cd19a88e08]

--
Ticket URL: <https://code.djangoproject.com/ticket/20873#comment:2>

Django

unread,
May 22, 2014, 9:48:38 AM5/22/14
to django-...@googlegroups.com
#20873: Model options assumes incorrectly that model classes resides in models-
module
-------------------------------------+-------------------------------------
Reporter: jtiai | Owner: nobody

Type: Bug | Status: closed
Component: Database layer | Version: 1.5
(models, ORM) | Resolution: fixed
Severity: Normal | Triage Stage: Accepted
Keywords: app-loading | Needs documentation: 0

Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by aaugustin):

* keywords: => app-loading


--
Ticket URL: <https://code.djangoproject.com/ticket/20873#comment:3>

Reply all
Reply to author
Forward
0 new messages