#23305: Models that are imported on app's import time are invisible to
makemigrations
---------------------------------+--------------------------------------
Reporter: rafalp | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.7-rc-2
Severity: Release blocker | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by andrewgodwin):
* status: new => closed
* resolution: => invalid
Comment:
I cannot replicate this; I've tried importing the models in __init__.py
directly, and via a submodule, with and without preexisting migrations
directories, and all variants work perfectly. On master, this does raise
the deprecation warning:
{{{
/home/andrew/Programs/DjangoTest/app_a/models.py:4:
RemovedInDjango19Warning: Model class app_a.models.ModelTest doesn't
declare an explicit app_label and either isn't in an application in
INSTALLED_APPS or else was imported before its application was loaded.
This will no longer be supported in Django 1.9.
class ModelTest(models.Model):
}}}
but it still works.
I'm closing as INVALID, but if you can supply me with either exact steps
to follow or an example project and console commands to follow, and that
causes the bug, we can reopen.
--
Ticket URL: <https://code.djangoproject.com/ticket/23305#comment:3>
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/064.c6f64b215ce61f68ecd696ce68464d2c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.