From dab2e5cb76f5503b66c9aa6109228fbc44eb55ee Mon Sep 17 00:00:00 2001 From: heinzel Date: Fri, 18 Dec 2020 11:43:35 +0100 Subject: [PATCH] FIX: some participant values were removed if participant was edited Some participant fields were not included in the form template and thus every time the form was saved those values were emptied. We exclude those fileds now within the form class. --- dav_events/forms/participant.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dav_events/forms/participant.py b/dav_events/forms/participant.py index 92dd23c..e471173 100644 --- a/dav_events/forms/participant.py +++ b/dav_events/forms/participant.py @@ -7,7 +7,9 @@ from ..models import Participant class ParticipantForm(forms.ModelForm): class Meta: model = Participant - exclude = ['event', 'created_at', 'position', 'purge_at'] + exclude = ['event', 'created_at', 'position', + 'privacy_policy', 'privacy_policy_accepted', + 'paid', 'purge_at'] widgets = { 'emergency_contact': forms.Textarea(attrs={'rows': 4}), 'experience': forms.Textarea(attrs={'rows': 5}),