]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/writers.py
Changing the charset of osqa.main.js to UTF-8, it might be useful.
[osqa.git] / forum / views / writers.py
index 017914b793727c2465ae941d2d26b347c1ec0260..125318b765edee0a8c65bdbb57bb5bcc1f629dd7 100644 (file)
@@ -107,20 +107,11 @@ def ask(request):
 
     return render_to_response('ask.html', {
         'form' : form,
+        'tab' : 'ask'
         }, 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):