From 50eabb50ac2dbd614323d9eca0defe5e41a4ba51 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Wed, 17 Jan 2024 17:22:04 +0200 Subject: [PATCH 1/2] Remove Covid-19 restrictions from in-person form --- organize/forms.py | 10 ---- templates/organize/form/step5_workshop.html | 58 --------------------- tests/organize/conftest.py | 13 ----- tests/organize/test_forms.py | 9 ---- 4 files changed, 90 deletions(-) diff --git a/organize/forms.py b/organize/forms.py index ced72c22c..172b81cc6 100644 --- a/organize/forms.py +++ b/organize/forms.py @@ -9,7 +9,6 @@ validate_approximatedate, validate_event_date, validate_future_date, - validate_local_restrictions, ) from .constants import INVOLVEMENT_CHOICES @@ -97,11 +96,8 @@ class WorkshopForm(forms.Form): venue = forms.CharField(widget=forms.Textarea(attrs={"class": "compact-input"})) sponsorship = forms.CharField(widget=forms.Textarea(attrs={"class": "compact-input"})) coaches = forms.CharField(widget=forms.Textarea(attrs={"class": "compact-input"})) - local_restrictions = forms.CharField(required=True, widget=forms.Textarea(attrs={"class": "compact-input"})) - safety = forms.CharField(required=True, widget=forms.Textarea(attrs={"class": "compact-input"})) diversity = forms.CharField(widget=forms.Textarea(attrs={"class": "compact-input"})) additional = forms.CharField(widget=forms.Textarea(attrs={"class": "compact-input"})) - confirm_covid_19_protocols = forms.BooleanField() def clean_date(self): date = self.cleaned_data.get("date") @@ -115,12 +111,6 @@ def clean_date(self): def get_data_for_saving(self): return self.cleaned_data - def clean_local_restrictions(self): - local_restrictions = self.cleaned_data.get("local_restrictions") - # Check if organizer provides link to government website - validate_local_restrictions(local_restrictions) - return local_restrictions - class RemoteWorkshopForm(forms.Form): date = ApproximateDateFormField(widget=forms.TextInput(attrs={"class": "compact-input"})) diff --git a/templates/organize/form/step5_workshop.html b/templates/organize/form/step5_workshop.html index b8301b276..a3c631906 100644 --- a/templates/organize/form/step5_workshop.html +++ b/templates/organize/form/step5_workshop.html @@ -153,43 +153,6 @@

{% trans "Tell us all about your Django Girls event!" %}

-
- -

{% trans "Please also provide a link to your government website outlining this." %}

- - -
- - -
- -

{% trans "Please provide information on how you plan to ensure safety for attendees and coaches for your in-person workshop during the Covid-19 pandemic." %}

- - -
-

{% trans "Please tell us how you intend to make sure your workshop is inclusive to people from marginalised communities and promote diversity." %}

@@ -226,27 +189,6 @@

{% trans "Tell us all about your Django Girls event!" %}

-
- -

{% trans "Confirm you will postpone or host remote workshop if Covid-19 situation changes in your city." %}

- - -
-