Fix _get_tag_name_from_entries().
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 16 Mar 2012 20:18:04 +0000 (21:18 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 16 Mar 2012 20:19:25 +0000 (21:19 +0100)
Replace == by =.

mediagoblin/listings/views.py

index ba23fc46b6b93336e2e50f4a55e3a6efbfd631aa..73a0feb365ca8695cb60e8277d7af555255c7c6c 100644 (file)
@@ -32,7 +32,7 @@ def _get_tag_name_from_entries(media_entries, tag_slug):
     if media_entries.count():
         for tag in media_entries[0]['tags']:
             if tag['slug'] == tag_slug:
-                tag_name == tag['name']
+                tag_name = tag['name']
                 break
 
     return tag_name