1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-24 01:36:47 +02:00

fix organizer field error

This commit is contained in:
quark
2025-07-22 18:20:05 +02:00
parent 4975c1ab6f
commit 8c3ae338ea

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):