Ticket #13411: patch01.patch
File patch01.patch, 704 bytes (added by , 15 years ago) |
---|
-
utils.py
25 25 if next is None: 26 26 next = urlresolvers.reverse(default_view) 27 27 if get_kwargs: 28 if '#' in next: 29 tmp = next.rsplit('#', 1) 30 next = tmp[0] 31 anchor = '#' + tmp[1] 32 else: 33 anchor = '' 34 28 35 joiner = ('?' in next) and '&' or '?' 29 next += joiner + urllib.urlencode(get_kwargs) 36 next += joiner + urllib.urlencode(get_kwargs) + anchor 30 37 return HttpResponseRedirect(next) 31 38 32 39 def confirmation_view(template, doc="Display a confirmation view."):