1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-23 17:26:46 +02:00

Merge branch 'fix_activity_form' into 'main'

fix organizer field error

See merge request bde/nk20!333
This commit is contained in:
quark
2025-07-22 18:55:27 +02:00

View File

@ -32,7 +32,7 @@ class ActivityForm(forms.ModelForm):
def clean_organizer(self): def clean_organizer(self):
organizer = self.cleaned_data['organizer'] organizer = self.cleaned_data['organizer']
if not organizer.note.is_active: if not organizer.note.is_active:
self.add_error('organiser', _('The note of this club is inactive.')) self.add_error('organizer', _('The note of this club is inactive.'))
return organizer return organizer
def clean_date_end(self): def clean_date_end(self):