Skip to content
Browse files

Added currentapp-preappend to URL reversal

  • Loading branch information...
1 parent 6f4d7f4 commit c501c522edebec5fc4d2312c6ec8f7a50fa8ddcd @CVi committed May 30, 2014
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:]

0 comments on commit c501c52

Please sign in to comment.
Something went wrong with that request. Please try again.