correct value to val

This commit is contained in:
Pavel Savchenko 2012-11-01 08:41:37 +02:00
parent b53a2f74ed
commit 7a12741524

View File

@ -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.