From: Jessica Tallon Date: Wed, 25 Nov 2015 14:57:46 +0000 (+0000) Subject: Fix #5363 - Collections don't serialize correctly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd07dd6da996eca21e82263e55889d28393ba75e;p=mediagoblin.git Fix #5363 - Collections don't serialize correctly --- 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, }