This commit is contained in:
Ross
2022-08-10 22:35:40 +01:00
parent 4c3b7d2e12
commit 74a7de7944
+1 -1
View File
@@ -250,7 +250,7 @@ class CaseForm(ModelForm):
# This is populated if we create the case from an exam/collection
self.collection = None
if "exams" in kwargs["initial"]:
if kwargs["initial"] is not None and "exams" in kwargs["initial"]:
collections = kwargs["initial"].pop("exams")
logging.debug(collections)