From: Elrond Date: Fri, 16 Mar 2012 20:18:04 +0000 (+0100) Subject: Fix _get_tag_name_from_entries(). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b4d9edaef6d9b5650c4e54f82059f965ef75a31;p=mediagoblin.git Fix _get_tag_name_from_entries(). Replace == by =. --- diff --git a/mediagoblin/listings/views.py b/mediagoblin/listings/views.py index ba23fc46..73a0feb3 100644 --- a/mediagoblin/listings/views.py +++ b/mediagoblin/listings/views.py @@ -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