Code

Changes between Version 2 and Version 3 of CookBookRequiredGroupLogin


Ignore:
Timestamp:
10/12/07 09:43:43 (7 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookRequiredGroupLogin

    v2 v3  
    1616                if test_func(request.user): 
    1717                    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()))) 
    2019            except: 
    2120                raise Http404