Url přesunuto z generického formu do příslušného view
This commit is contained in:
parent
1e2ab81bce
commit
c33896afec
2 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
{{ nadpis }}
|
{{ nadpis }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</h1>
|
</h1>
|
||||||
<form action="{% url 'hromadne_pridani' %}" method="post">
|
<form action="{% url form_url %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table class="form">
|
<table class="form">
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
|
|
|
@ -39,6 +39,7 @@ class HromadnePridaniView(FormView):
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data()
|
context = super().get_context_data()
|
||||||
context["nadpis"] = "Hromadné přidání úloh"
|
context["nadpis"] = "Hromadné přidání úloh"
|
||||||
|
context["form_url"] = "hromadne_pridani"
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
|
Loading…
Reference in a new issue