Changes between Version 1 and Version 2 of Ticket #35739


Ignore:
Timestamp:
Sep 5, 2024, 9:39:42 PM (2 weeks ago)
Author:
hcjohnston
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35739 – Description

    v1 v2  
    2222    section_name = forms.CharField(max_length=128, required=False, widget=forms.TextInput(attrs={"placeholder": "Section heading"}))
    2323    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")
    2824
    2925SiteVisitSectionFormset = forms.formset_factory(
Back to Top