#29177: Unmanaged models with ForeignKeys do not get those fields serialized 
into
their migration state when CreateModel happens.
------------------------------+------------------------------------
     Reporter:  Keryn Knight  |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  Migrations    |                  Version:  master
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  1             |      Needs documentation:  1
  Needs tests:  0             |  Patch needs improvement:  1
Easy pickings:  0             |                    UI/UX:  0
------------------------------+------------------------------------

Comment (by João Paulo Limberger - JOTAPE - Shoo):

 Thanks! This workaround save my day Too!!!

 > Replying to [comment:7 Daniel Naab]:
 > > I hit this bug also, and worked around by:
 > >
 > > 1) Making the models `managed = True`
 > > 2) Running `manage.py makemigrations` for those models
 > > 3) Manually switched all `'managed': True` models in the migration to
 `'managed': False`
 > > 4) Switch models back to `managed = False`
 >
 > Same bug here and this workaround saved my day.
 > Thanks a lot!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29177#comment:13>
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/067.4fddf308bca392e0750102d590ea6981%40djangoproject.com.

Reply via email to