aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorTom Christie2012-02-21 13:38:21 +0000
committerTom Christie2012-02-21 13:38:21 +0000
commit5a5f24f263c218f4f04a6ea54bfc48a2794e152b (patch)
tree4faf7b5ef6cbbda3e58a1e2dcd399d88333f9695 /djangorestframework
parent54a02c1fb9e9f1036e94aa662f1c286398a93ef7 (diff)
downloaddjango-rest-framework-5a5f24f263c218f4f04a6ea54bfc48a2794e152b.tar.bz2
Gotta love dynamic languages
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/serializer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/serializer.py b/djangorestframework/serializer.py
index 71c0d93a..b0c02675 100644
--- a/djangorestframework/serializer.py
+++ b/djangorestframework/serializer.py
@@ -146,7 +146,7 @@ class Serializer(object):
# then the second element of the tuple is the fields to
# set on the related serializer
if isinstance(info, (list, tuple)):
- class OnTheFlySerializer(Serializer):
+ class OnTheFlySerializer(self.__class__):
fields = info
return OnTheFlySerializer