Changes between Version 2 and Version 3 of CookBookRequiredGroupLogin
- Timestamp:
- Oct 12, 2007, 11:43:43 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookRequiredGroupLogin
v2 v3 16 16 if test_func(request.user): 17 17 return view_func(request, *args, **kwargs) 18 return HttpResponseRedirect('%s?%s=%s' % (login_url, REDIRECT_FIELD_NAME, quote(request.get_full_path 19 ()))) 18 return HttpResponseRedirect('%s?%s=%s' % (login_url, REDIRECT_FIELD_NAME, quote(request.get_full_path()))) 20 19 except: 21 20 raise Http404