#22319: ValueError: Related model cannot be resolved
---------------------------------+--------------------------------------
     Reporter:  efrinut@…        |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Migrations       |                  Version:  master
     Severity:  Release blocker  |               Resolution:  fixed
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by rvernica):

 I was able to move past this by adding the following to the `dependencies`
 field in the `Migration`:
 {{{
 class Migration(migrations.Migration):

   dependencies = [
     ('NAME_OF_RELATED_APP', 'LAST_MIGRATION_IN_THAT_APP'),
     ...
   ]
 }}}
 Now `sqlmigrate` works as expected.

 After looking around it seems that this problem has been encountered
 before and this solution worked in the past.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22319#comment:27>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.5aa346d8e881d7c124b63a137fa9f7cd%40djangoproject.com.

Reply via email to