From 2753cce428ce348aee2910d56e65731dff49b50d Mon Sep 17 00:00:00 2001
From: Lucas Brandstaetter <lucas@brandstaetter.tech>
Date: Sun, 27 Oct 2024 09:36:22 +0100
Subject: [PATCH] Fix double get_form() call in ProjectFormMixin

---
 src/backoffice/views/projects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backoffice/views/projects.py b/src/backoffice/views/projects.py
index 76aa2df89..b4c7061dd 100644
--- a/src/backoffice/views/projects.py
+++ b/src/backoffice/views/projects.py
@@ -124,7 +124,7 @@ class ProjectFormMixin(ConferenceLoginRequiredMixin, FormView):
 
     def get_context_data(self, *args, **kwargs):
         ctx = super().get_context_data(*args, **kwargs)
-        if 'form' not in kwargs:
+        if 'form' not in kwargs and 'form' not in ctx:
             ctx['form'] = self.get_form()
         if 'link_forms' not in kwargs:
             ctx['link_forms'] = self.get_links_formset()
-- 
GitLab