{{{
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.
* cc: claus (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21888#comment:1>
* status: new => closed
* resolution: => duplicate
Comment:
Sorry, duplicate of #21872
--
Ticket URL: <https://code.djangoproject.com/ticket/21888#comment:2>