X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/bf2b816f96c293f0c15bdc80a828091be5607500..3f06621595592d106f0071e379026f73709360a0:/contact/views.py diff --git a/contact/views.py b/contact/views.py index 84578dc..86c8417 100644 --- a/contact/views.py +++ b/contact/views.py @@ -24,7 +24,7 @@ def form(request, form_tag, force_enabled=False): raise Http404 if not (force_enabled and request.user.is_superuser): disabled = getattr(form_class, 'disabled', False) - end_tuple = getattr(form_class, 'ends_on') + end_tuple = getattr(form_class, 'ends_on', None) end_time = localtime_to_utc(datetime(*end_tuple)) if end_tuple else None expired = end_time and end_time < timezone.now() if disabled or expired: