Update categories/templatetags/category_tags.py

Added str() to line 49 to fix an error where .strip("'\"") in get_category is getting called on a non-string category_string.
This commit is contained in:
Glen 2013-02-24 14:05:07 -08:00
parent e8b4a50e28
commit 59c3e27134

View file

@ -46,7 +46,7 @@ def get_category(category_string, model=Category):
Convert a string, including a path, and return the Category object
"""
model_class = get_cat_model(model)
category = category_string.strip("'\"")
category = str(category_string).strip("'\"")
category = category.strip('/')
cat_list = category.split('/')