diff --git a/templates/admin/formularz_zbiorek.html b/templates/admin/formularz_zbiorek.html index f9cadc5..a000ca4 100644 --- a/templates/admin/formularz_zbiorek.html +++ b/templates/admin/formularz_zbiorek.html @@ -1,7 +1,8 @@ -{# templates/zbiorka_form.html #} +{# templates/formularz_zbiorek.html #} {% extends 'base.html' %} -{% set is_edit = zbiorka is not none %} +{% set has_obj = zbiorka is not none %} +{% set is_edit = has_obj and zbiorka.id is not none %} {% block title %}{{ 'Edytuj zbiórkę' if is_edit else 'Dodaj zbiórkę' }}{% endblock %} @@ -15,17 +16,15 @@