X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..388e067266479b2c201d94ffad6e199f17e3ff17:/src/contact/views.py diff --git a/src/contact/views.py b/src/contact/views.py index 0f8aad9a5..5f22f79d6 100644 --- a/src/contact/views.py +++ b/src/contact/views.py @@ -1,3 +1,6 @@ +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from urllib.parse import unquote from datetime import datetime @@ -40,7 +43,7 @@ def form(request, form_tag, force_enabled=False): formsets = { prefix: formset_class(request.POST, request.FILES, prefix=prefix) for prefix, formset_class in formset_classes.items()} - if form.is_valid() and all(formset.is_valid() for formset in formsets.itervalues()): + if form.is_valid() and all(formset.is_valid() for formset in formsets.values()): contact = form.save(request, formsets.values()) if form.result_page: return redirect('contact_results', contact.id, contact.digest())