This commit is contained in:
Ross
2022-04-26 20:54:52 +01:00
parent 2ae855b82a
commit 3991c0b04c
+4 -4
View File
@@ -55,7 +55,7 @@ class ConditionForm(ModelForm):
class CaseCollectionForm(ModelForm): class CaseCollectionForm(ModelForm):
class Meta: class Meta:
model = CaseCollection model = CaseCollection
exclude = ["cases", "author"] exclude = ["cases", "valid_users"]
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.user = kwargs.pop( self.user = kwargs.pop(
@@ -413,9 +413,9 @@ class CidReportAnswerForm(ModelForm):
"answer": Textarea(attrs={"cols": 100, "rows": 5}), "answer": Textarea(attrs={"cols": 100, "rows": 5}),
} }
help_texts = { #help_texts = {
"answer": "Write your answer in here." # "answer": "Write your answer in here."
} #}
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(CidReportAnswerForm, self).__init__(*args, **kwargs) super(CidReportAnswerForm, self).__init__(*args, **kwargs)