mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Merge 500f996c31
into 9d6129a95f
This commit is contained in:
commit
749bed105e
|
@ -349,6 +349,9 @@ class BaseSerializer(WritableField):
|
|||
try:
|
||||
value = field.field_to_native(obj, field_name)
|
||||
except IgnoreFieldException:
|
||||
if field.write_only:
|
||||
ret.fields[key] = self.augment_field(field, field_name,
|
||||
key, '')
|
||||
continue
|
||||
method = getattr(self, 'transform_%s' % field_name, None)
|
||||
if callable(method):
|
||||
|
|
Loading…
Reference in New Issue
Block a user