diff options
author | Jessica Tallon <tsyesika@tsyesika.se> | 2015-11-25 14:57:46 +0000 |
---|---|---|
committer | Jessica Tallon <tsyesika@tsyesika.se> | 2015-11-25 14:57:46 +0000 |
commit | fd07dd6da996eca21e82263e55889d28393ba75e (patch) | |
tree | b968863a72a1ffb0f6811aa33ab849c48e6e85d4 /mediagoblin/db/models.py | |
parent | 0d053bff98f32cc4f38456c705d38c32f557fe6d (diff) | |
download | mediagoblin-fd07dd6da996eca21e82263e55889d28393ba75e.tar.lz mediagoblin-fd07dd6da996eca21e82263e55889d28393ba75e.tar.xz mediagoblin-fd07dd6da996eca21e82263e55889d28393ba75e.zip |
Fix #5363 - Collections don't serialize correctly
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index c380c918..77f8a1b8 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -1152,7 +1152,7 @@ class Collection(Base, CollectionMixin, CommentingMixin): # Get all serialized output in a list items = [i.serialize(request) for i in self.get_collection_items()] return { - "totalItems": self.items, + "totalItems": self.num_items, "url": self.url_for_self(request.urlgen, qualified=True), "items": items, } |