>
> Will read_only_fields also disappear? soon?
>
Any reason?
class SomeSerializer(serializer.ModelSerializer):
class Meta:
model = SomeModel
fields = ('somefield1', 'somefield2', 'somefield3')
extra_kwargs = {
'somefield2': {'write_only': True},
'somefield3': {'read_only': True}
}
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.