From e63253f848e00f29a62ecef9015db7c773a97a8f Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Wed, 5 Feb 2020 23:59:21 +0100 Subject: [PATCH] Forms | Prace na vkladani reseni. --- seminar/templates/seminar/org/vloz_reseni.html | 6 +++++- seminar/urls.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/seminar/templates/seminar/org/vloz_reseni.html b/seminar/templates/seminar/org/vloz_reseni.html index 4339e0e3..bfe4f6f6 100644 --- a/seminar/templates/seminar/org/vloz_reseni.html +++ b/seminar/templates/seminar/org/vloz_reseni.html @@ -9,9 +9,13 @@ {% block content %}

{% block nadpis1a %}{% block nadpis1b %} - Přihláška do semináře + Vložit řešení {% endblock %}{% endblock %}

+
+ {% csrf_token %} {{form.as_p}} + +
{% endblock %} diff --git a/seminar/urls.py b/seminar/urls.py index 84775838..bc1c89a8 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -117,7 +117,7 @@ urlpatterns = [ path('auth/resitel_edit', views.resitelEditView, name='seminar_resitel_edit'), - path('temp/add_solution', views.AddSolutionView.as_view()), + path('temp/add_solution', views.AddSolutionView.as_view(),name='seminar_vloz_reseni'), path('', views.TitulniStranaView.as_view(), name='titulni_strana'),