Ticket #10585: patch01.diff

File patch01.diff, 659 bytes (added by benbest86, 16 years ago)
  • django/contrib/comments/views/utils.py

     
    2525    if next is None:
    2626        next = urlresolvers.reverse(default_view)
    2727    if get_kwargs:
    28         next += "?" + urllib.urlencode(get_kwargs)
     28        if "?" in next:
     29            next += "&" + urllib.urlencode(get_kwargs)
     30        else:
     31            next += "?" + urllib.urlencode(get_kwargs)
    2932    return HttpResponseRedirect(next)
    3033
    3134def confirmation_view(template, doc="Display a confirmation view."):
Back to Top