diff options
| author | Tom Christie | 2014-09-18 14:23:00 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-09-18 14:23:00 +0100 |
| commit | 9fdb2280d11db126771686d626aa8a0247b8a46c (patch) | |
| tree | 4dd3e7d39e2bff75f38ed0a748befa478ff889a1 /rest_framework/utils/representation.py | |
| parent | 3bc628edc01a6bd4feeceaefa45168549b79a31a (diff) | |
| download | django-rest-framework-9fdb2280d11db126771686d626aa8a0247b8a46c.tar.bz2 | |
First pass on ManyRelation
Diffstat (limited to 'rest_framework/utils/representation.py')
| -rw-r--r-- | rest_framework/utils/representation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rest_framework/utils/representation.py b/rest_framework/utils/representation.py index 71db1886..e64fdd22 100644 --- a/rest_framework/utils/representation.py +++ b/rest_framework/utils/representation.py @@ -73,6 +73,8 @@ def serializer_repr(serializer, indent, force_many=None): ret += serializer_repr(field, indent + 1) elif hasattr(field, 'child'): ret += list_repr(field, indent + 1) + elif hasattr(field, 'child_relation'): + ret += field_repr(field.child_relation, force_many=field.child_relation) else: ret += field_repr(field) return ret |
