X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/62604660ed4357d8e2cb3e920751c3a7be8d4234..c76406e46e71cb86cfb440667bfbbe21b36e709e:/forum/views/writers.py diff --git a/forum/views/writers.py b/forum/views/writers.py index 017914b..07364f7 100644 --- a/forum/views/writers.py +++ b/forum/views/writers.py @@ -110,17 +110,7 @@ def ask(request): }, context_instance=RequestContext(request)) def edit_question(request, id): - #question = get_object_or_404(Question, id=id) - try: - question = Question.objects.get(id=id) - except: - if slug: - question = match_question_slug(slug) - if question is not None: - return HttpResponseRedirect(question.get_absolute_url()) - - raise Http404() - + question = get_object_or_404(Question, id=id) if question.nis.deleted and not request.user.can_view_deleted_post(question): raise Http404 if request.user.can_edit_post(question):