X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/225112630311389d806ce3f7f02f443f9aaa67da..b2789efe30a42c1c9780c6cf132d905ea7e41c87:/contact/forms.py diff --git a/contact/forms.py b/contact/forms.py index 8e78eed..0279e12 100644 --- a/contact/forms.py +++ b/contact/forms.py @@ -10,7 +10,7 @@ from django.utils.translation import ugettext_lazy as _ contact_forms = {} admin_list_width = 0 -class ContactFormMeta(forms.Form.__metaclass__): +class ContactFormMeta(forms.Form.__class__): def __new__(cls, *args, **kwargs): global admin_list_width model = super(ContactFormMeta, cls).__new__(cls, *args, **kwargs)