Ticket #6892: 6892v2.diff
File 6892v2.diff, 736 bytes (added by , 16 years ago) |
---|
-
views/generic/simple.py
33 33 If the given url is ``None``, a HttpResponseGone (410) will be issued. 34 34 """ 35 35 if url is not None: 36 return HttpResponsePermanentRedirect(url % kwargs) 36 try: 37 return HttpResponsePermanentRedirect(url % kwargs) 38 except ValueError: 39 raise ValueError('URL formatting failed in django.views.simple.redirect_to. This can result from the url parameters containing any %-encoded characters. To solve it, replace all "%" with "%%".') 40 37 41 else: 38 42 return HttpResponseGone()