fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix in get_here_url: generic views provide unusable url name, check for view func...
[fnpdjango.git]
/
fnpdjango
/
templatetags
/
fnp_lang.py
diff --git
a/fnpdjango/templatetags/fnp_lang.py
b/fnpdjango/templatetags/fnp_lang.py
index
006faec
..
5f7ac24
100644
(file)
--- a/
fnpdjango/templatetags/fnp_lang.py
+++ b/
fnpdjango/templatetags/fnp_lang.py
@@
-36,9
+36,9
@@
def get_here_url(request, lang):
match = resolve(request.get_full_path())
except Resolver404:
match = resolve('/')
match = resolve(request.get_full_path())
except Resolver404:
match = resolve('/')
- view = match.
url_name
+ view = match.
func
if view is None:
if view is None:
- view = match.
func
+ view = match.
url_name
if lang is None:
lang = translation.get_language()
with translation.override(lang):
if lang is None:
lang = translation.get_language()
with translation.override(lang):