From 451169c996225725acf269701428464ccd493835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Barbier?= Date: Mon, 27 Nov 2023 11:34:00 +0700 Subject: [PATCH] Set auto_sync to True on creation Related to #99 --- CHANGELOG.md | 1 + .../migrations/0014_alter_profile_auto_sync.py | 18 ++++++++++++++++++ seven23/models/profile/models.py | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 seven23/models/profile/migrations/0014_alter_profile_auto_sync.py diff --git a/CHANGELOG.md b/CHANGELOG.md index db2a66d..d01b031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ See for sample https://raw.githubusercontent.com/favoloso/conventional-changelog ## [1.5.0] - 2023-11-DD ### ✨ Feature - Make **trial period** customizable (#98) +- Set **auto_Sync to True** by default (#99) ### 🔒 Security - Migrate to **Django 4.2+** (#71) diff --git a/seven23/models/profile/migrations/0014_alter_profile_auto_sync.py b/seven23/models/profile/migrations/0014_alter_profile_auto_sync.py new file mode 100644 index 0000000..bceb88b --- /dev/null +++ b/seven23/models/profile/migrations/0014_alter_profile_auto_sync.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-11-27 04:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('profile', '0013_profile_key_verified'), + ] + + operations = [ + migrations.AlterField( + model_name='profile', + name='auto_sync', + field=models.BooleanField(default=True, verbose_name='Auto sync in app'), + ), + ] diff --git a/seven23/models/profile/models.py b/seven23/models/profile/models.py index 327a61f..1d2f9a7 100644 --- a/seven23/models/profile/models.py +++ b/seven23/models/profile/models.py @@ -31,7 +31,7 @@ class Profile(models.Model): max_length=20, choices=AVATAR_OPTIONS, help_text=_(u'Select between different origins.')) - auto_sync = models.BooleanField(_(u'Auto sync in app'), default=False) + auto_sync = models.BooleanField(_(u'Auto sync in app'), default=True) social_networks = models.TextField(_('social_networks blob'), blank=True, null=False) last_api_call = models.DateField(_(u'Last API call'), help_text=_(u'Last call on the API as a registered user'),