fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First tag categories plus their tags fixture
[prawokultury.git]
/
menu
/
helpers.py
diff --git
a/menu/helpers.py
b/menu/helpers.py
index
15d8646
..
33e90b7
100755
(executable)
--- a/
menu/helpers.py
+++ b/
menu/helpers.py
@@
-15,7
+15,12
@@
class MenuItem(object):
def is_active(self, request, value):
url = request.get_full_path()
def is_active(self, request, value):
url = request.get_full_path()
- return url == str(self.url) or url in set(str(url) for url in self.more_urls)
+ if url.startswith(str(self.url)):
+ return True
+ for other_url in self.more_urls:
+ if url.startswith(str(other_url)):
+ return True
+ return False
def check_active(self, request, value):
try:
def check_active(self, request, value):
try: