--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-05-16 16:23
+from __future__ import unicode_literals
+
+import django.contrib.auth.validators
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('aa', '0004_auto_20170418_1155'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='user',
+ name='share_contact_details',
+ field=models.BooleanField(default=True, verbose_name='Share contact detais with members'),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='username',
+ field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username'),
+ ),
+ ]
phone = models.CharField(_('Phone'), max_length=20, null=True, blank=True)
mobile = models.CharField(_('Mobile'), max_length=20, null=True, blank=True)
- share_contact_details = models.BooleanField(_('Share contact detais'), default=True)
+ share_contact_details = models.BooleanField(_('Share contact detais with members'), default=True)
class Meta:
ordering = ['first_name', 'last_name']
class ProfileContactEditView(UpdateView):
model = User
- fields = ['phone', 'mobile']
+ fields = ['phone', 'mobile', 'share_contact_details']
success_url = reverse_lazy('profile-view')
def get_object(self):