X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c6c2f8819fc57f538764f3bccc7580bc6d94e25b..b7bd197a889546e6d8a1c8bb093d2da2b1b8fcb9:/forum/views/writers.py diff --git a/forum/views/writers.py b/forum/views/writers.py index 74708d6..125318b 100644 --- a/forum/views/writers.py +++ b/forum/views/writers.py @@ -4,7 +4,6 @@ import time, datetime, random import logging from django.core.files.storage import FileSystemStorage from django.shortcuts import render_to_response, get_object_or_404 -from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect, HttpResponse, Http404 from django.template import RequestContext from django.utils.html import * @@ -108,9 +107,9 @@ def ask(request): return render_to_response('ask.html', { 'form' : form, + 'tab' : 'ask' }, context_instance=RequestContext(request)) -@login_required def edit_question(request, id): question = get_object_or_404(Question, id=id) if question.nis.deleted and not request.user.can_view_deleted_post(question): @@ -174,7 +173,6 @@ def _edit_question(request, question): #'tags' : _get_tags_cache_json() }, context_instance=RequestContext(request)) -@login_required def edit_answer(request, id): answer = get_object_or_404(Answer, id=id) if answer.deleted and not request.user.can_view_deleted_post(answer):