mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 06:29:58 +03:00
correct value to val
This commit is contained in:
parent
b53a2f74ed
commit
7a12741524
|
@ -126,7 +126,7 @@ class BaseSerializer(Field):
|
||||||
for key, val in fields.items():
|
for key, val in fields.items():
|
||||||
if key not in ret:
|
if key not in ret:
|
||||||
ret[key] = val
|
ret[key] = val
|
||||||
if value.source.primary_key:
|
if val.source.primary_key:
|
||||||
pk_field = key
|
pk_field = key
|
||||||
|
|
||||||
# If 'fields' is specified, use those fields, in that order.
|
# If 'fields' is specified, use those fields, in that order.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user