[Django] #21888: Related model %r cannot be resolved

3 views
Skip to first unread message

Django

unread,
Jan 28, 2014, 8:50:46 AM1/28/14
to django-...@googlegroups.com
#21888: Related model %r cannot be resolved
---------------------------------+-------------------------
Reporter: claus | Owner:
Type: Bug | Status: new
Component: Migrations | Version: 1.7-alpha-1
Severity: Release blocker | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------
My ''models.py'' (simplified) looks like this:

{{{
class BackgroundImage(models.Model):
name = models.CharField(max_length=64)

class Occasion(models.Model):
backgrounds = models.ManyToManyField(BackgroundImage, blank=True)
}}}

In ''0001_initial.py'' created by ''makemigrations APP_NAME'' the
operation to create table ''Occasion'' comes before the operation to
create table ''BackgroundImage'', resulting in the above message when
trying to run ''migrate''.

If it's relevant, I am using psycopg2 for the driver.

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

Django

unread,
Jan 28, 2014, 8:51:26 AM1/28/14
to django-...@googlegroups.com
#21888: Related model %r cannot be resolved
---------------------------------+---------------------------------------

Reporter: claus | Owner:
Type: Bug | Status: new
Component: Migrations | Version: 1.7-alpha-1
Severity: Release blocker | Resolution:
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 claus):

* cc: claus (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


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

Django

unread,
Jan 28, 2014, 8:55:23 AM1/28/14
to django-...@googlegroups.com
#21888: Related model %r cannot be resolved
---------------------------------+---------------------------------------
Reporter: claus | Owner:
Type: Bug | Status: closed
Component: Migrations | Version: 1.7-alpha-1
Severity: Release blocker | Resolution: duplicate
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 claus):

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


Comment:

Sorry, duplicate of #21872

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

Reply all
Reply to author
Forward
0 new messages