#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 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` columns in the migration to
`'managed': False`
4) Switch models back to `managed = False`
--
Ticket URL: <https://code.djangoproject.com/ticket/29177#comment:7>
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/067.a88ff03551cdddedc62cbbd9917aba61%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.