Skip to content
Snippets Groups Projects
Commit f1d807bf authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

small change to how custom reverse function works

parent 060bf9b0
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ def reverse(name, *args, **kw):
# This probably only works if you give app_names which are the same
# and namespaces that are different.
if 'request' in kw and 'current_app' not in kw:
if kw.get('request', None) is not None and 'current_app' not in kw:
request = kw['request']
# For some reason, resolve() does not seem to like the script_prefix.
# So, remove it.
......
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