Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added default redirect

  • Loading branch information...
commit 72e4edc8143e1911c3f04f9e79370bebcbe84254 1 parent 77d3b14
@WoLpH authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django_utils/view_decorators.py
View
2  django_utils/view_decorators.py
@@ -30,7 +30,7 @@ def json_default_handler(obj):
'serializable' % (type(obj), repr(obj)))
-def redirect(url, *args, **kwargs):
+def redirect(url='./', *args, **kwargs):
if '/' not in url or args or kwargs:
url = urlresolvers.reverse(url, args=args, kwargs=kwargs)
return http.HttpResponseRedirect(url)
Please sign in to comment.
Something went wrong with that request. Please try again.