From bdb1d68beac20f02eab986a50b6cfe0fc1026b01 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 24 Feb 2013 14:03:48 -0800 Subject: [PATCH] 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. --- categories/templatetags/category_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/categories/templatetags/category_tags.py b/categories/templatetags/category_tags.py index 1331cda..c39ad4c 100644 --- a/categories/templatetags/category_tags.py +++ b/categories/templatetags/category_tags.py @@ -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('/')