]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/writers.py
Several improvements in the node bulk management feature. Improved filters and added...
[osqa.git] / forum / views / writers.py
index 017914b793727c2465ae941d2d26b347c1ec0260..07364f7647da985ff2c8547316504abcf9a7af7f 100644 (file)
@@ -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):