Fout bij opslaan evenement met registratiebericht
File "/usr/local/lib/python3.5/site-packages/django/forms/models.py" in _post_clean
398. self.instance.full_clean(exclude=exclude, validate_unique=False)
File "/usr/local/lib/python3.5/site-packages/django/db/models/base.py" in full_clean
1232. raise ValidationError(errors)
During handling of the above exception ({'no_registration_message': ['Het is niet logisch om dit te hebben als je registratie vereist.']}), another exception occurred:
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.5/site-packages/django/contrib/admin/options.py" in wrapper
544. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/contrib/admin/sites.py" in inner
211. return view(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/contrib/admin/options.py" in change_view
1512. return self.changeform_view(request, object_id, form_url, extra_context)
File "/usr/local/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapper
67. return bound_func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/django/utils/decorators.py" in bound_func
63. return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/local/lib/python3.5/contextlib.py" in inner
30. return func(*args, **kwds)
File "/usr/local/lib/python3.5/site-packages/django/contrib/admin/options.py" in changeform_view
1441. if form.is_valid():
File "/usr/local/lib/python3.5/site-packages/django/forms/forms.py" in is_valid
169. return self.is_bound and not self.errors
File "/usr/local/lib/python3.5/site-packages/django/forms/forms.py" in errors
161. self.full_clean()
File "/usr/local/lib/python3.5/site-packages/django/forms/forms.py" in full_clean
372. self._post_clean()
File "/usr/local/lib/python3.5/site-packages/django/forms/models.py" in _post_clean
400. self._update_errors(e)
File "/usr/local/lib/python3.5/site-packages/django/forms/models.py" in _update_errors
374. self.add_error(None, errors)
File "/usr/local/lib/python3.5/site-packages/django/forms/forms.py" in add_error
338. "'%s' has no field named '%s'." % (self.__class__.__name__, field))
Exception Type: ValueError at /admin/events/event/120/change/
Exception Value: 'EventForm' has no field named 'no_registration_message'.
Request information:
USER: sversteeg
GET:
next = '/events/admin/120/'
POST:
description_en = '<p><em>Volgens Tarantino was Django Unchained de gewelddadigste film die hij ooit maakte.</em></p>\r\n<p>De eerstejaarscommissie organiseert haar eerste evenement in de vorm van een filmavond. We zullen tussen 5 en 9 uur de film Django Unchained laten zien, omdat deze film bijna voordat hij uitkwam al een klassieker was. Er zal eten en drinken aanwezig zijn voor degene die hier behoefte aan heeft tijdens de film. </p>'
title_nl = 'Filmavond Eerstejaarscommissie'
end_0 = '06-12-2016'
registration_end_1 = '20:00:00'
registration_start_0 = '11-10-2016'
registrationinformationfield_set-__prefix__-order = '0'
max_participants = '25'
location_nl = 'Noord kantine'
no_registration_message_nl = 'Je bent altijd welkom <3'
end_1 = '21:00:00'
cost = '0.00'
registrationinformationfield_set-TOTAL_FORMS = '0'
map_location = ''
price = '0.00'
_save = 'Opslaan'
location_en = 'Noord kantine'
registrationinformationfield_set-__prefix__-description_nl = ''
title_en = 'Filmavond Eerstejaarscommissie'
cancel_deadline_1 = '12:00:00'
registrationinformationfield_set-__prefix__-event = '120'
no_registration_message_en = 'Je bent altijd welkom <3'
registrationinformationfield_set-MIN_NUM_FORMS = '0'
registrationinformationfield_set-MAX_NUM_FORMS = '1000'
registrationinformationfield_set-__prefix__-name_en = ''
registration_start_1 = '15:19:00'
csrfmiddlewaretoken = 'SFr1bQZlSdAhIJNd1X259tPXS7ZAc6egFqRI4Jh1RWbc39ORRy7L1lReTVc5COxm'
cancel_deadline_0 = '06-12-2016'
registrationinformationfield_set-INITIAL_FORMS = '0'
registrationinformationfield_set-__prefix__-type = 'boolean'
start_0 = '06-12-2016'
registration_end_0 = '06-12-2016'
organiser = '48'
start_1 = '17:00:00'
registrationinformationfield_set-__prefix__-name_nl = ''
published = 'on'
registrationinformationfield_set-__prefix__-id = ''
registrationinformationfield_set-__prefix__-description_en = ''
description_nl = '<p><em>Volgens Tarantino was Django Unchained de gewelddadigste film die hij ooit maakte.</em></p>\r\n<p>De eerstejaarscommissie organiseert haar eerste evenement in de vorm van een filmavond. We zullen tussen 5 en 9 uur de film Django Unchained laten zien, omdat deze film bijna voordat hij uitkwam al een klassieker was. Er zal eten en drinken aanwezig zijn voor degene die hier behoefte aan heeft tijdens de film. </p>'
Er gaat wat fout met de error als je registratie verplicht stelt en toch een bericht instelt om mensen te vertellen dat ze niet hoeven te registreren.