Commit b41f258e by Tom Christie

Serializers should accept source='*' argument. Fixes #604.

(Test also incoming)
parent a2dcf5e8
......@@ -300,6 +300,9 @@ class BaseSerializer(Field):
Override default so that we can apply ModelSerializer as a nested
field to relationships.
"""
if self.source == '*':
return self.to_native(obj)
try:
if self.source:
for component in self.source.split('.'):
......
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