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 TranslatedFieldsField only works on a TranslatableModelSerializer, see the example in the README. Both need to work together, as serialize fields can't control the model .save() call sadly.
Sorry, after closing reading I see you're trying to create a "mixin" or base class. I've moved the checks of the parent.Meta.model to the actual place they are used, instead of checking them too early (see 9a3dd7c). Does this work for you?
Hi,
I have a question regarding this commit : 5e9cc04
Sometimes we don't inherit from a
ModelSerializer
, e.g.:The above mentioned commit breaks non-
ModelSerializer
:Is there a valid reason why
TranslatedFieldsField
assumes there is aparent.Meta.model
?The text was updated successfully, but these errors were encountered: