mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Merge pull request #63 from iepathos/patch-1
Update categories/templatetags/category_tags.py
This commit is contained in:
commit
bf751dcb5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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('/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue