diff --git a/nyaa/forms.py b/nyaa/forms.py index 1a61706..f21b890 100644 --- a/nyaa/forms.py +++ b/nyaa/forms.py @@ -166,6 +166,10 @@ class EditForm(FlaskForm): class UploadForm(FlaskForm): + + class Meta: + csrf = False + torrent_file = FileField('Torrent file', [ FileRequired() ]) diff --git a/nyaa/templates/upload.html b/nyaa/templates/upload.html index e54beaa..b2df92f 100644 --- a/nyaa/templates/upload.html +++ b/nyaa/templates/upload.html @@ -14,8 +14,6 @@
Drop here!
- {{ upload_form.csrf_token }} - {% if config.ENFORCE_MAIN_ANNOUNCE_URL %}

Important: Please include {{ config.MAIN_ANNOUNCE_URL }} in your trackers

{% endif %}