.
This commit is contained in:
+4
-4
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user