Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
helgihg committed Jun 12, 2018
2 parents 042e374 + d672f0a commit 36af545
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.7
0.10.8
20 changes: 20 additions & 0 deletions core/migrations/0054_auto_20180612_1305.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-12 13:05
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0053_auto_20180605_1214'),
]

operations = [
migrations.AlterField(
model_name='userprofile',
name='email_wanted',
field=models.NullBooleanField(default=False, help_text='Whether to consent to receiving notifications via email.', verbose_name='Consent for sending email'),
),
]
13 changes: 11 additions & 2 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,17 @@ class UserProfile(models.Model):
picture = models.ImageField(upload_to='profiles', verbose_name=_("Picture"), null=True, blank=True)
joined_org = models.DateTimeField(null=True, blank=True) # Time when user joined organization, as opposed to registered in the system

# User settings
email_wanted = models.BooleanField(default=False, verbose_name=_('Consent for sending email'), help_text=_('Whether to consent to receiving notifications via email.'))
# When this is null (None), it means that the user has not consented to,
# nor specifically rejected receiving email. This is a left-over state
# from when implied consent sufficed, but should gradually be decreased
# until all users have either consented or not. No new members should have
# this field as null (None).
email_wanted = models.NullBooleanField(
default=False,
verbose_name=_('Consent for sending email'),
help_text=_('Whether to consent to receiving notifications via email.')
)

language = models.CharField(max_length=6, default='en', choices=settings.LANGUAGES, verbose_name=_("Language"))
topics_showall = models.BooleanField(default=True, help_text=_("Whether to show all topics in a polity, or only starred."))

Expand Down

0 comments on commit 36af545

Please sign in to comment.