diff options
| author | Michael Barrett | 2012-09-19 08:05:16 -0700 |
|---|---|---|
| committer | Michael Barrett | 2012-09-19 08:05:16 -0700 |
| commit | 943bc073d986b1d5bc10c6d17d3601d4311c3681 (patch) | |
| tree | b2a9b319eaa8f976bcea3d74324c162fd2234e43 | |
| parent | 0fc5a49a114ca65aab90dcf039da1569dde3c499 (diff) | |
| download | django-rest-framework-943bc073d986b1d5bc10c6d17d3601d4311c3681.tar.bz2 | |
Fixing Issue #265.
https://github.com/tomchristie/django-rest-framework/issues/265
| -rw-r--r-- | djangorestframework/serializer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/serializer.py b/djangorestframework/serializer.py index 3f05903b..5d77c461 100644 --- a/djangorestframework/serializer.py +++ b/djangorestframework/serializer.py @@ -182,7 +182,7 @@ class Serializer(object): else: depth = self.depth - 1 - if any([obj is elem for elem in self.stack]): + if obj in self.stack: return self.serialize_recursion(obj) else: stack = self.stack[:] |
