Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added currentapp-preappend to URL reversal

  • Loading branch information...
commit c501c522edebec5fc4d2312c6ec8f7a50fa8ddcd 1 parent 6f4d7f4
@CVi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/core/urlresolvers.py
View
2  django/core/urlresolvers.py
@@ -514,6 +514,8 @@ def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current
view = viewname
else:
parts = viewname.split(':')
+ if parts[0] == '' and current_app:
+ parts[0] = current_app
parts.reverse()
view = parts[0]
path = parts[1:]
Please sign in to comment.
Something went wrong with that request. Please try again.