Merge pull request #63 from iepathos/patch-1

Update categories/templatetags/category_tags.py
This commit is contained in:
Corey Oordt 2013-02-27 17:12:21 -08:00
commit bf751dcb5d

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('/')