#31416: FieldError when migrating field to new model subclass.
-------------------------------+------------------------------------
Reporter: Eduard Anghel | Owner: Nan Liu
Type: Bug | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by Nan Liu):
Replying to [comment:15 felixxm]:
> Nan Liu, this test doesn't cover the issue, because it's not related
with migrations. We have here inline models so migrations are not
involved, it doesn't fail. New tests should be added to
`tests/migrations`, you can find there similar tests.
I'm not sure whether I should put tests in `test_autoencoder` or
`test_operations` since the issue is related to adjusting autoencoder as
well as operations swapping. My intuition tells me that I should add some
tests in `test_operations.py` since we want to swap operations so that
field removals of bases can take place before newly added sub-models can
be created, but I just thought it would be always good to ask here. much
appreciated!
--
Ticket URL: <https://code.djangoproject.com/ticket/31416#comment:16>
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/070.b91e534866d766ee45c4371576896c56%40djangoproject.com.