Move text definitions to somewhere more authoratitive

This commit is contained in:
2020-05-28 23:02:07 +01:00
parent 4cfd83eeb3
commit d3b3d1c9d7
9 changed files with 131 additions and 111 deletions

View File

@@ -161,9 +161,9 @@ class EventRiskAssessmentForm(forms.ModelForm):
for name, field in self.fields.items():
if field.__class__ == forms.BooleanField:
field.widget = forms.RadioSelect(choices=[
(True, 'Yes'),
(False, 'No')
], attrs={'class': 'custom-control-input'})
(True, 'Yes'),
(False, 'No')
], attrs={'class': 'custom-control-input'})
class Meta:
model = models.RiskAssessment