Commit 08e78185 by jedavis83@gmail.com

More consistent iteration over default_fields, per feedback.

parent e9944f82
......@@ -134,7 +134,8 @@ class BaseSerializer(Field):
field.initialize(parent=self, field_name=key)
# Add in the default fields
for key, val in self.get_default_fields().items():
default_fields = self.get_default_fields()
for key, val in self.default_fields.items():
if key not in ret:
ret[key] = val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment