This commit is contained in:
Ross
2024-04-10 23:26:29 +01:00
parent dff4705d72
commit 3b6128aa84
+1 -1
View File
@@ -464,7 +464,7 @@ class CaseSeriesForm(ModelForm):
class CaseCollectionCaseForm(ModelForm):
def __init__(self, *args, user, collection, **kwargs):
def __init__(self, *args, user, collection=None, **kwargs):
super(CaseCollectionCaseForm, self).__init__(*args, **kwargs)
queryset = get_cases_available_to_user(user, collection=collection)