[damned-lies] Limit BuildTranslatedDocsView to POST
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Limit BuildTranslatedDocsView to POST
- Date: Fri, 11 Jan 2019 20:18:00 +0000 (UTC)
commit 241d52062540436fed0de54882ab5b259c6ff12a
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Jan 7 08:50:28 2019 +0100
Limit BuildTranslatedDocsView to POST
vertimus/views.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/vertimus/views.py b/vertimus/views.py
index 8d46b3f8..3694b59f 100644
--- a/vertimus/views.py
+++ b/vertimus/views.py
@@ -294,6 +294,8 @@ class QualityCheckView(PoFileActionBase):
class BuildTranslatedDocsView(PoFileActionBase):
+ http_method_names = ['post']
+
def post(self, request, *args, **kwargs):
pofile = self.get_po_file()
if pofile is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]