Fix atom feed for tags.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 9 Apr 2012 20:43:25 +0000 (22:43 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 9 Apr 2012 20:43:25 +0000 (22:43 +0200)
This one was missed. Needs to call a big sql join.
Luckily the join was already implemented.

mediagoblin/listings/views.py

index 9244293fd0fed4483c0e2acaab856cbb198602b3..a8824390be5417760dda0a50717e9497326afe62 100644 (file)
@@ -74,9 +74,7 @@ def tag_atom_feed(request):
     """
     tag_slug = request.matchdict[u'tag']
 
-    cursor = request.db.MediaEntry.find(
-        {u'state': u'processed',
-         u'tags.slug': tag_slug})
+    cursor = media_entries_for_tag_slug(request.db, tag_slug)
     cursor = cursor.sort('created', DESCENDING)
     cursor = cursor.limit(ATOM_DEFAULT_NR_OF_UPDATED_ITEMS)