Skip to content

Commit

Permalink
category string, fixes issue 2
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Sep 17, 2010
1 parent 2a9f3eb commit 027569f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/templatetags/category_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_category(category_string):
"""
Convert a string, including a path, and return the Category object
"""
if category.startswith('"') and category.endswith('"'):
if category_string.startswith('"') and category_string.endswith('"'):
category = category_string[1:-1]
else:
category = category_string
Expand Down Expand Up @@ -131,4 +131,4 @@ def get_top_level_categories(parser, token):
raise template.TemplateSyntaxError, "First argyment must be 'as'."
return TopLevelCategoriesNode(bits[2])

register.tag(get_top_level_categories)
register.tag(get_top_level_categories)

0 comments on commit 027569f

Please sign in to comment.