Skip to content

Commit

Permalink
Set auto_sync to True on creation
Browse files Browse the repository at this point in the history
Related to #99
  • Loading branch information
sebastienbarbier committed Nov 27, 2023
1 parent f244936 commit 451169c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
18 changes: 18 additions & 0 deletions seven23/models/profile/migrations/0014_alter_profile_auto_sync.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
2 changes: 1 addition & 1 deletion seven23/models/profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 451169c

Please sign in to comment.