From 59ee1436c5b629006443398ed68ac72b80e0f55f Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Tue, 20 Oct 2020 13:16:03 +0200 Subject: [PATCH] required dataprotection checkbox added --- input/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/input/forms.py b/input/forms.py index 4043a7f..13a4464 100644 --- a/input/forms.py +++ b/input/forms.py @@ -1,5 +1,5 @@ from django.db import models -from django.forms import ModelForm, DateField, ChoiceField, RadioSelect +from django.forms import ModelForm, DateField, ChoiceField, RadioSelect, BooleanField from django.contrib.admin.widgets import AdminDateWidget from .models import Project, Volunteer, IFG, Library, TYPE_CHOICES @@ -18,6 +18,8 @@ class VolunteerForm(ModelForm): choice = ChoiceField(choices=TYPE_CHOICES, widget=RadioSelect, label='Was möchtest Du beantragen?') + check = BooleanField(required=True, label='Ich stimme den Datenschutzbestimmungen und den Förderrichtlinen zu') + class Meta: model = Volunteer exclude = ('granted',)