diff --git a/partners/constants.py b/partners/constants.py index 2857a634b27058972118f0cd1f58b12e579daa9a..148ac6556ebd5852c5aeaaac739086933b4ad51f 100644 --- a/partners/constants.py +++ b/partners/constants.py @@ -32,7 +32,7 @@ PROSPECTIVE_PARTNER_STATUS = ( ) PROSPECTIVE_PARTNER_EVENT_REQUESTED = 'requested' -PROSPECTIVE_PARTNER_EVENT_COMMENT = 'comment', +PROSPECTIVE_PARTNER_EVENT_COMMENT = 'comment' PROSPECTIVE_PARTNER_EVENT_EMAIL_SENT = 'email_sent' PROSPECTIVE_PARTNER_EVENT_INITIATE_NEGOTIATION = 'negotiating' PROSPECTIVE_PARTNER_EVENT_MARKED_AS_UNINTERESTED = 'marked_as_uninterested' diff --git a/partners/views.py b/partners/views.py index 111dda8d8190b60812b4991328984d0519ee8984..4173a8ca18050c67bee237019f2d1d010c37d257 100644 --- a/partners/views.py +++ b/partners/views.py @@ -145,6 +145,8 @@ def add_prospartner_event(request, prospartner_id): prospartner.save() return redirect(reverse('partners:manage')) else: + t = ppevent_form.errors + raise errormessage = 'The form was invalidly filled.' return render(request, 'scipost/error.html', {'errormessage': errormessage}) errormessage = 'This view can only be posted to.'