Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
b2436821
Commit
b2436821
authored
Feb 22, 2021
by
Bryan BRANCOTTE
Browse files
bugfix when raw path provided
parent
af7e8c8b
Pipeline
#48688
passed with stage
in 1 minute and 1 second
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templatetags/basetheme_bootstrap.py
View file @
b2436821
...
...
@@ -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
...
...
setup.py
View file @
b2436821
...
...
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup
(
name
=
'django-basetheme-bootstrap'
,
version
=
'0.2.5
6
'
,
version
=
'0.2.5
7
'
,
description
=
'Django Basetheme Bootstrap'
,
long_description
=
readme
,
author
=
'Bryan Brancotte'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment