diff options
author | Magnus Hagander | 2019-01-04 13:16:14 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-01-04 13:16:14 +0000 |
commit | 6d44349af29bcd83e477a48e2a555c1314bce7eb (patch) | |
tree | 97c16914247501eea1964d6a9914f7af51d22f70 /postgresqleu | |
parent | cccf9900282393f65dc4f85e922f69c2b427ca14 (diff) |
Fix fieldsets for admin of conference registration entry
dietary needs field was misspelled, would cause a crash if editing a
conference that did not ask for dietary needs.
shareemail field was not in a fieldset, would cause a crash for editing
anything at all on a conference with email sharing enabled (clearly
that's not used much these days).
Diffstat (limited to 'postgresqleu')
-rw-r--r-- | postgresqleu/confreg/backendforms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/confreg/backendforms.py b/postgresqleu/confreg/backendforms.py index 8151d3ca..2f5ad943 100644 --- a/postgresqleu/confreg/backendforms.py +++ b/postgresqleu/confreg/backendforms.py @@ -144,7 +144,7 @@ class BackendRegistrationForm(BackendForm): fieldsets = [ {'id': 'personal_info', 'legend': 'Personal information', 'fields': ['firstname', 'lastname', 'email', 'company', 'address', 'country', 'phone', 'twittername', 'nick']}, {'id': 'reg_info', 'legend': 'Registration information', 'fields': ['regtype', 'additionaloptions', 'shareemail']}, - {'id': 'attendee_specifics', 'legend': 'Attendee specifics', 'fields': ['shirtsize', 'dietary']}, + {'id': 'attendee_specifics', 'legend': 'Attendee specifics', 'fields': ['shirtsize', 'dietary', 'shareemail']}, ] class Meta: @@ -160,7 +160,7 @@ class BackendRegistrationForm(BackendForm): self.fields['additionaloptions'].queryset = ConferenceAdditionalOption.objects.filter(conference=self.conference) self.fields['regtype'].queryset = RegistrationType.objects.filter(conference=self.conference) if not self.conference.askfood: - self.remove_field('askfood') + self.remove_field('dietary') if not self.conference.asktshirt: self.remove_field('shirtsize') if not self.conference.askshareemail: |