mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:19:59 +00:00
nyaadev is an idiot and broke apiv2
This commit is contained in:
parent
0a258d59e1
commit
c2438f3913
|
@ -166,6 +166,10 @@ class EditForm(FlaskForm):
|
||||||
|
|
||||||
|
|
||||||
class UploadForm(FlaskForm):
|
class UploadForm(FlaskForm):
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
csrf = False
|
||||||
|
|
||||||
torrent_file = FileField('Torrent file', [
|
torrent_file = FileField('Torrent file', [
|
||||||
FileRequired()
|
FileRequired()
|
||||||
])
|
])
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
<div id="upload-drop-zone"><span>Drop here!</span></div>
|
<div id="upload-drop-zone"><span>Drop here!</span></div>
|
||||||
<form method="POST" enctype="multipart/form-data">
|
<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 %}
|
{% 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="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
Loading…
Reference in a new issue