#23337: CircularDependencyError when squashing migrations
----------------------------+----------------------
     Reporter:  Naddiseo    |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  1.7-rc-2
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+----------------------
 Project layout:

 .
 ├── cheese
 │   ├── __init__.py
 │   ├── migrations
 │   │   └── __init__.py
 │   └── models.py (model Cheese, links to eggs.Store and spam.Employee)
 ├── djtest
 │   ├── basemodel.py
 │   ├── __init__.py
 │   ├── settings.py
 │   ├── urls.py
 │   └── wsgi.py
 ├── eggs
 │   ├── __init__.py
 │   ├── migrations
 │   │   └── __init__.py
 │   └── models.py (model Store, links to spam.Employee)
 ├── manage.py
 └── spam
     ├── __init__.py
     ├── migrations
     │   └── __init__.py
     └── models.py (model Employee, links to itself and eggs.Store; model
 Eggs, links to spam.Employee and cheese.Cheese)



 Issue the following commands for the attached project:

     $ python manage.py makemigrations
     $ manage squashmigrations cheese 0003
     $ manage squashmigrations eggs 0002

 The following is raised:

     django.db.migrations.graph.CircularDependencyError: [('spam',
 '0001_initial'), ('cheese', '0001_squashed_0003_cheese_updated_by'),
 ('spam', '0001_initial')]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23337>
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/051.7a219411c5c1cd39a428bcd2bd5ab422%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to