diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 21:10:46 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 21:10:46 -0400 |
commit | 05a44e86fbb656e5a4f6228c28b61df740549b34 (patch) | |
tree | 4d272046b88cd07f82d48da8a2390d785ace96c5 /releng | |
parent | c6eb3b7b3c77d1b70126e0755c9ee66de88d5395 (diff) | |
parent | 67b87ed4c0abd593e2833b3aa6b969c2e2451b60 (diff) |
Merge branch 'archweb-generic' into master-nomake
# Conflicts:
# local_settings.py.example
Diffstat (limited to 'releng')
-rw-r--r-- | releng/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/releng/views.py b/releng/views.py index af25b966..0fb55b29 100644 --- a/releng/views.py +++ b/releng/views.py @@ -247,9 +247,6 @@ class ReleaseJSONEncoder(DjangoJSONEncoder): 'created', 'md5_sum', 'sha1_sum') def default(self, obj): - if hasattr(obj, '__iter__'): - # mainly for queryset serialization - return list(obj) if isinstance(obj, Release): data = {attr: getattr(obj, attr) or None for attr in self.release_attributes} @@ -276,7 +273,7 @@ def releases_json(request): data = { 'version': 1, - 'releases': releases, + 'releases': list(releases), 'latest_version': latest_version, } to_json = json.dumps(data, ensure_ascii=False, cls=ReleaseJSONEncoder) |