-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
})\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
\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