Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix of signin url when askbot.deps.django_authopenid is disabled #61

merged 1 commit into from

2 participants


When accessing views decorated with owner_or_moderator_required, anonymous users are redirected to the sign-in page first. After signing in, they are redirected back to the original page.

This logic is broken when askbot.deps.django_authopenid app is disabled, leading to an exception instead:

Exception Type: NoReverseMatch at /qa/users/41/maebert/
Exception Value: Reverse for 'user_signin' with arguments '()' and keyword arguments '{}' not found.
@evgenyfadeev evgenyfadeev merged commit ddb40b4 into ASKBOT:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2012
  1. @piskvorky

    Update askbot/views/

    piskvorky committed
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 askbot/views/
4 askbot/views/
@@ -40,7 +40,7 @@
from askbot.skins.loaders import render_into_skin
from askbot.templatetags import extra_tags
from import SearchState
+from askbot.utils import url_utils
def owner_or_moderator_required(f):
@@ -51,7 +51,7 @@ def wrapped_func(request, profile_owner, context):
params = '?next=%s' % request.path
- return HttpResponseRedirect(reverse('user_signin') + params)
+ return HttpResponseRedirect(url_utils.get_login_url() + params)
return f(request, profile_owner, context)
return wrapped_func
Something went wrong with that request. Please try again.