-
Notifications
You must be signed in to change notification settings - Fork 8
Added GDPR field #239
base: master
Are you sure you want to change the base?
Added GDPR field #239
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ class Migration(migrations.Migration): | |
| operations = [ | ||
| migrations.AddField( | ||
| model_name='member', | ||
| name='last_edited_by', | ||
| name='gdpr_approval', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file shouldn't be changed |
||
| field=models.ForeignKey(null=True, to=settings.AUTH_USER_MODEL, related_name='modifier'), | ||
| ), | ||
| ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Generated by Django 1.11.18 on 2019-01-10 12:19 | ||
| from __future__ import unicode_literals | ||
|
|
||
| from django.conf import settings | ||
| from django.db import migrations, models | ||
| import django.db.models.deletion | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
| ('members', '0010_auto_20160315_2114'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='member', | ||
| name='last_edited_by', | ||
| field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='modifier', to=settings.AUTH_USER_MODEL), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name='member', | ||
| name='gdpr_approval', | ||
| field=models.BooleanField(default=False, null=True, help_text='Privacy policy agreement'), | ||
| ), | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ class Member(models.Model): | |
| -name of the member | ||
| -email address that can be blank | ||
| -uio username that can be blank. | ||
| -if member have approved privacy policy | ||
|
|
||
| Can only be one member with the same name and email address per semester. | ||
| """ | ||
|
|
@@ -32,6 +33,7 @@ class Member(models.Model): | |
| uio_username = models.CharField(max_length=15, null=True, blank=True) | ||
| comments = models.TextField(null=True, blank=True) | ||
| last_edited_by = models.ForeignKey(User, related_name='modifier', null=True) | ||
| gdpr_approval = models.BooleanField(default=False, help_text='Privacy policy agreement') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Antakeligvis bedre om vi hadde brukt en dato her, slik at man kan forstå når det skjedde. Har vi egentlig noen policy liggende noe sted? Viser forøvrig til diskusjon på Slack: https://cybernetisk.slack.com/archives/C03QDK7CV/p1547123717047400 |
||
|
|
||
| def __str__(self): | ||
| return self.name | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation, see also other lines