X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/62604660ed4357d8e2cb3e920751c3a7be8d4234..afa2b5ca9e29a5f2f3dfa8f94a5be2f9e612d719:/forum/views/decorators.py diff --git a/forum/views/decorators.py b/forum/views/decorators.py index 20eb45c..9cb8cbd 100644 --- a/forum/views/decorators.py +++ b/forum/views/decorators.py @@ -1,14 +1,18 @@ -from django.http import HttpResponse, HttpResponseRedirect, Http404 +# -*- coding: utf-8 -*- + +import logging + +from datetime import datetime + +from django.http import HttpResponse, HttpResponseRedirect from django.utils import simplejson -from django.core.paginator import Paginator, EmptyPage from django.shortcuts import render_to_response from django.core.urlresolvers import reverse from django.template import RequestContext -from django.utils.translation import ungettext, ugettext as _ +from django.utils.translation import ugettext as _ + from forum.modules import ui, decorate -from datetime import datetime, date from forum.settings import ONLINE_USERS -import logging def login_required(func, request, *args, **kwargs): if not request.user.is_authenticated():