diff --git a/app/templates/red_link.html b/app/templates/red_link.html index 133e954..43a331a 100755 --- a/app/templates/red_link.html +++ b/app/templates/red_link.html @@ -63,9 +63,10 @@
-
{{ form.tag.label }} {{ form.tag(size=20, class="form-control") }}
+
{{ form.category.label }} {{ form.category(size=20, class="form-control") }}
{{ form.file }} - + {{ form.upload }} + {{ form.wish }} {% endblock %} diff --git a/app/views.py b/app/views.py index 7909b86..cdbd7e1 100755 --- a/app/views.py +++ b/app/views.py @@ -153,7 +153,7 @@ def edit_book_by_id(id): @app.route('/add-book', methods=['POST', 'GET']) def add_book(): upload_form = UploadForm() - + if request.method == 'POST': if upload_form.validate_on_submit():