you should "return HttpResponseRedirect"
Regards.
On Tue, Nov 17, 2009 at 5:04 PM, adrian wrote:
>
> The LOGIN_REDIRECT_URL setting points to this view, where I want to
> redirect again according to the group the user is in:
>
> @login_required
> def after_login(request):
> print "after_login
The LOGIN_REDIRECT_URL setting points to this view, where I want to
redirect again according to the group the user is in:
@login_required
def after_login(request):
print "after_login"
groups = request.user.groups.all()
if groups:
# use first one
name = str(groups[0].na
2 matches
Mail list logo