Skip to content
Snippets Groups Projects
Commit b2436821 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

bugfix when raw path provided

parent af7e8c8b
No related branches found
No related tags found
No related merge requests found
Pipeline #48688 passed
......@@ -17,8 +17,8 @@ logger = logging.getLogger(__name__)
@register.filter
def is_active_or_desc(request, pattern):
try:
if str(request.path).startswith(str(reverse(pattern))) \
or str(request.path).startswith(str(pattern)):
if str(request.path).startswith(str(pattern)) \
or str(request.path).startswith(str(reverse(pattern))):
return 'active '
except Exception:
pass
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.2.56',
version='0.2.57',
description='Django Basetheme Bootstrap',
long_description=readme,
author='Bryan Brancotte',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment