Changeset - c56a80514106
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 12 months ago 2023-04-24 01:59:37
ben@sturm.com.au
Indicate non-FOSS software
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pinaxcon/proposals/forms.py
Show inline comments
...
 
@@ -18,21 +18,25 @@ DEFAULT_FIELDS =  [
 
    # "project",
 
    # "project_url",
 
    # "video_url",
 
    "require_approval",
 
    "recording_release",
 
    "materials_release",
 
    "indicate_use_of_proprietary_software",
 
]
 

	
 
TALK_FORMAT_FIELDS = copy.copy(DEFAULT_FIELDS)
 
TALK_FORMAT_FIELDS.insert(2, "talk_format")
 
TALK_FORMAT_FIELDS.append("ticket_acknowledgement")
 

	
 
class ProposalForm(forms.ModelForm):
 

	
 
    required_css_class = 'label-required'
 
    indicate_use_of_proprietary_software = forms.BooleanField(
 
        help_text="Attendees at FOSSY need to be able to assume that any software mentioned is FOSS by default. I understand that I must indicate the use of any proprietary software on slides and any physical materials present.")
 

	
 

	
 
    def clean_description(self):
 
        value = self.cleaned_data["description"]
 
        if len(value) > 400:
 
            raise forms.ValidationError(
 
                u"The description must be less than 400 characters"
0 comments (0 inline, 0 general)