]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/admin.py
Resolves OSQA-704, try to recreate the SMTP connection after exception has occurred.
[osqa.git] / forum / views / admin.py
index 67047ba9c36f301131712b2c7cefc53f1a4e10c8..4823920c1099b6c3f6267a637684ce1bee53fd10 100644 (file)
@@ -1,6 +1,7 @@
 from datetime import datetime, timedelta
 import time
 
+from django.views.decorators.csrf import csrf_exempt
 from django.shortcuts import render_to_response, get_object_or_404
 from django.core.urlresolvers import reverse
 from django.http import HttpResponseRedirect, HttpResponse, Http404
@@ -574,6 +575,7 @@ def node_management(request):
     'hide_menu': True
     }))
 
+@csrf_exempt
 @super_user_required
 def test_email_settings(request):
     user = request.user