Changes between Version 1 and Version 2 of Ticket #35739
- Timestamp:
- Sep 5, 2024, 9:39:42 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35739 – Description
v1 v2 22 22 section_name = forms.CharField(max_length=128, required=False, widget=forms.TextInput(attrs={"placeholder": "Section heading"})) 23 23 section_text = forms.CharField(max_length=1000, required=False, widget=forms.Textarea(attrs={"placeholder": "Introduction", "style": "height: 100px;"})) 24 25 def clean(self):26 if self.cleaned_data["section_name"] == "" and self.cleaned_data["section_text"] == "" and self.cleaned_data["DELETE"] == False:27 self.add_error(None, "Please include either section name or introduction text")28 24 29 25 SiteVisitSectionFormset = forms.formset_factory(