]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/users.py
Removes a few remaining usages of old django decorators and replace them by OSQA...
[osqa.git] / forum / views / users.py
index 3c1654cf82d3478d485fcd6ecf42bafc648847a2..d95b3027259624e2ff4d95560d3aaea95f1358a0 100644 (file)
@@ -1,4 +1,3 @@
-from django.contrib.auth.decorators import login_required\r
 from forum.models import User\r
 from django.db.models import Q, Count\r
 from django.core.paginator import Paginator, EmptyPage, InvalidPage\r
@@ -83,7 +82,6 @@ def online_users(request):
     })\r
 \r
 \r
-@login_required\r
 def edit_user(request, id):\r
     user = get_object_or_404(User, id=id)\r
     if not (request.user.is_superuser or request.user == user):\r
@@ -403,13 +401,4 @@ def user_preferences(request, user):
             \r
     return {'view_user': user, 'form': form}\r
 \r
-@login_required\r
-def account_settings(request):\r
-    logging.debug('')\r
-    msg = request.GET.get('msg', '')\r
-    is_openid = False\r
 \r
-    return render_to_response('account_settings.html', {\r
-    'msg': msg,\r
-    'is_openid': is_openid\r
-    }, context_instance=RequestContext(request))\r