From d4f27e8f2fe4b9081fca1b61e39334d391c5cea2 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 14 Nov 2024 21:11:34 +0100 Subject: [PATCH] feat: Allow to set organization when creating adoption notice --- src/fellchensammlung/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index c5ba512..90b9074 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -51,6 +51,7 @@ class AdoptionNoticeForm(forms.ModelForm): 'group_only', 'searching_since', 'location_string', + 'organization', 'description', 'further_information', ), @@ -58,13 +59,14 @@ class AdoptionNoticeForm(forms.ModelForm): class Meta: model = AdoptionNotice - fields = ['name', "group_only", "further_information", "description", "searching_since", "location_string"] + fields = ['name', "group_only", "further_information", "description", "searching_since", "location_string", + "organization"] class AdoptionNoticeFormWithDateWidget(AdoptionNoticeForm): class Meta: model = AdoptionNotice - fields = ['name', "group_only", "further_information", "description", "searching_since", "location_string"] + fields = ['name', "group_only", "further_information", "description", "searching_since", "location_string", "organization"] widgets = { 'searching_since': DateInput(), }