From fd07dd6da996eca21e82263e55889d28393ba75e Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Wed, 25 Nov 2015 14:57:46 +0000 Subject: [PATCH] Fix #5363 - Collections don't serialize correctly --- mediagoblin/db/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } -- 2.11.4.GIT