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
When I try to update with PATCH it doesn't work. Asks me to fill all fields.
Do you have any special reason to do not to support this?
My usage is like this:
class MySerializer(TranslatableModelSerializer):
translations = TranslatedFieldsField(shared_model=MyModel)
class Meta:
model = MyModel
fields = '__all__'
For solving this problem I need to override the to_internal_value method:
class ParialUpdatableTranslatedFieldsField(TranslatedFieldsField):
def to_internal_value(self, data):
...
# replace this line with below
# serializer = self.serializer_class(
# data=model_fields
# )
serializer = self.serializer_class(
data=model_fields,
context=self.context,
partial=self.parent.partial,
)
...
The text was updated successfully, but these errors were encountered:
When I try to update with
PATCH
it doesn't work. Asks me to fill all fields.Do you have any special reason to do not to support this?
My usage is like this:
For solving this problem I need to override the
to_internal_value
method:The text was updated successfully, but these errors were encountered: