From ccb84a99385dbf643baa0687a662844a38973dde Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 18 Dec 2014 15:55:45 -0200 Subject: [PATCH] Settings needs_update default to True --- colab/accounts/migrations/0003_auto_20141218_1755.py | 20 ++++++++++++++++++++ colab/accounts/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 colab/accounts/migrations/0003_auto_20141218_1755.py diff --git a/colab/accounts/migrations/0003_auto_20141218_1755.py b/colab/accounts/migrations/0003_auto_20141218_1755.py new file mode 100644 index 0000000..9a71660 --- /dev/null +++ b/colab/accounts/migrations/0003_auto_20141218_1755.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounts', '0002_user_needs_update'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='needs_update', + field=models.BooleanField(default=True), + preserve_default=True, + ), + ] diff --git a/colab/accounts/models.py b/colab/accounts/models.py index 9645e1b..2af0f34 100644 --- a/colab/accounts/models.py +++ b/colab/accounts/models.py @@ -26,7 +26,7 @@ class User(AbstractUser): verification_hash = models.CharField(max_length=32, null=True, blank=True) modified = models.DateTimeField(auto_now=True) bio = models.CharField(max_length=200, null=True, blank=True) - needs_update = models.BooleanField(default=False) + needs_update = models.BooleanField(default=True) def check_password(self, raw_password): -- libgit2 0.21.2