nyaadev is an idiot and broke apiv2

This commit is contained in:
aldacron 2017-05-21 22:10:05 -07:00
parent 0a258d59e1
commit c2438f3913
2 changed files with 4 additions and 2 deletions

View File

@ -166,6 +166,10 @@ class EditForm(FlaskForm):
class UploadForm(FlaskForm):
class Meta:
csrf = False
torrent_file = FileField('Torrent file', [
FileRequired()
])

View File

@ -14,8 +14,6 @@
<div id="upload-drop-zone"><span>Drop here!</span></div>
<form method="POST" enctype="multipart/form-data">
{{ upload_form.csrf_token }}
{% if config.ENFORCE_MAIN_ANNOUNCE_URL %}<p><strong>Important:</strong> Please include <kbd>{{ config.MAIN_ANNOUNCE_URL }}</kbd> in your trackers</p>{% endif %}
<div class="row">
<div class="col-md-6">