Commits

tejinderss committed 794d460

bug fixed

Comments (0)

Files changed (1)

registration/views.py

 """
 
 from django.http import HttpResponse, HttpResponseBadRequest
-from django.shortcuts import redirect
+from django.shortcuts import redirect, resolve_url
 from django.utils import simplejson as json
 from django.views.generic.base import TemplateView
 from django.views.generic.edit import FormView
 
         if request.is_ajax():
             context = {
-                'redirect_url': to,
+                'redirect_url': resolve_url(to),
             }
             return HttpResponse(json.dumps(context),
                                 mimetype="application/json")