#23358: with nested applications different applications ordering cause wrong
app_label for some models
-------------------------------+--------------------------------------
Reporter: rsalmaso | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by rsalmaso:
Old description:
> I've a project with this layout
>
> {{{
> project
> project.myapp
> ... # other apps
> }}}
>
> `project` and `project.myapp` have both models.py
> `project.myapp.models` has `MyModel` defined
>
> If I have
> INSTALLED_APPS = (
> 'project.myapp',
> 'project',
> )
> django recognize `project.myapp.models.MyModel` correctly as
> `myapp.MyModel`.
>
> otherwise if I have
> INSTALLED_APPS = (
> 'project',
> 'project.myapp',
> )
> django recognize `project.myapp.models.MyModel` correctly as
> `project.MyModel`.
New description:
I've a project with this layout
{{{
project
project.myapp
... # other apps
}}}
`project` and `project.myapp` have both models.py
`project.myapp.models` has `MyModel` defined
If I have
INSTALLED_APPS = (
'project.myapp',
'project',
)
django recognize `project.myapp.models.MyModel` correctly as
`myapp.MyModel`.
otherwise if I have
INSTALLED_APPS = (
'project',
'project.myapp',
)
django recognize `project.myapp.models.MyModel` incorrectly as
`project.MyModel`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/23358#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.3edb0b79a8a1ece88178a97034011ff5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.