Commit b2436821 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

bugfix when raw path provided

parent af7e8c8b
Pipeline #48688 passed with stage
in 1 minute and 1 second
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment