diff options
Diffstat (limited to '')
-rw-r--r-- | engagements/views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engagements/views.py b/engagements/views.py index a76a37d..88f2014 100644 --- a/engagements/views.py +++ b/engagements/views.py @@ -155,6 +155,12 @@ def engagement_create(request, slug, reg=None): ef.external_party = Organisation.objects.get(slug=slug) ef.save() return redirect("engagements:plan_for_org", orgslug=slug) + else: + return render( + request, + "engagements/engagement_form.html", + {"form": form, "title": f"Create Engagement for {slug}", "errors": form.errors}, + ) else: if reg: form = EngagementCreateForm( |