mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
feat: add consent form for data processing
This commit is contained in:
15
breccia_mapper/forms.py
Normal file
15
breccia_mapper/forms.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django import forms
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
User = get_user_model() # pylint: disable=invalid-name
|
||||
|
||||
|
||||
class ConsentForm(forms.ModelForm):
|
||||
"""Form used to collect user consent for data collection / processing."""
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ['consent_given']
|
||||
labels = {
|
||||
'consent_given':
|
||||
'I have read and understood this information and consent to my data being used in this way',
|
||||
}
|
||||
Reference in New Issue
Block a user