1. Yohan Boniface
  2. django-leaflet-storage

Commits

Yohan Boniface  committed ab18c42

Do not allow GET requests on FormLessMixin views

  • Participants
  • Parent commits cddf2d1
  • Branches master

Comments (0)

Files changed (1)

File leaflet_storage/views.py

View file
  • Ignore whitespace
 
 
 class FormLessEditMixin(object):
+    http_method_names = [u'post', ]
 
     def form_invalid(self, form):
         return simple_json_response(errors=form.errors, infos=_("An error occured."))