You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instance of parent model is saved in DB with type field set as empty string.
While there is probably nothing we can do about it (as apps.get_model just looks at the table specification on given point in time) I think it's worth mention somewhere about this limitation as this might lead to hard to debug errors.
The workaround is to always set type in migration, i.e.:
Let's say we will have code like that in migration:
The instance of parent model is saved in DB with
type
field set as empty string.While there is probably nothing we can do about it (as
apps.get_model
just looks at the table specification on given point in time) I think it's worth mention somewhere about this limitation as this might lead to hard to debug errors.The workaround is to always set type in migration, i.e.:
The text was updated successfully, but these errors were encountered: