X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c2e8051452fa55db096553cbe5ae622fc363d481..2edc7aa5583b2d241b4f18a2b06b2dead36ea8c1:/src/contact/forms.py

diff --git a/src/contact/forms.py b/src/contact/forms.py
index ee44e4b19..ecdc47d54 100644
--- a/src/contact/forms.py
+++ b/src/contact/forms.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.
+#
 import json
 from django.contrib.sites.models import Site
 from django.core.exceptions import ValidationError
@@ -26,9 +29,8 @@ class ContactFormMeta(forms.Form.__class__):
         return model
 
 
-class ContactForm(forms.Form):
+class ContactForm(forms.Form, metaclass=ContactFormMeta):
     """Subclass and define some fields."""
-    __metaclass__ = ContactFormMeta
 
     form_tag = None
     form_title = _('Contact form')