Registrations: view to uncheck apply_reduced_fee while accepting
Some checks failed
buildbot/tox Build done.

This commit is contained in:
2020-12-16 17:28:40 +01:00
parent d3d63097db
commit b44f6df32e
9 changed files with 171 additions and 22 deletions

View File

@@ -164,6 +164,13 @@ Anmerkung:
note=self.note,
)
def get_data_dict(self):
data = {}
for field in self._meta.fields:
if not field.primary_key:
data[field.name] = getattr(self, field.name)
return data
def clean(self):
if self.dav_member and not self.dav_number:
raise ValidationError({'dav_number': _('Wenn du DAV Mitglied bist, brauchen wir deine Mitgliedsnummer.')})