Commit ccb84a99385dbf643baa0687a662844a38973dde
1 parent
142f60ef
Exists in
master
and in
39 other branches
Settings needs_update default to True
Showing
2 changed files
with
21 additions
and
1 deletions
Show diff stats
@@ -0,0 +1,20 @@ | @@ -0,0 +1,20 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +from __future__ import unicode_literals | ||
3 | + | ||
4 | +from django.db import models, migrations | ||
5 | + | ||
6 | + | ||
7 | +class Migration(migrations.Migration): | ||
8 | + | ||
9 | + dependencies = [ | ||
10 | + ('accounts', '0002_user_needs_update'), | ||
11 | + ] | ||
12 | + | ||
13 | + operations = [ | ||
14 | + migrations.AlterField( | ||
15 | + model_name='user', | ||
16 | + name='needs_update', | ||
17 | + field=models.BooleanField(default=True), | ||
18 | + preserve_default=True, | ||
19 | + ), | ||
20 | + ] |
colab/accounts/models.py
@@ -26,7 +26,7 @@ class User(AbstractUser): | @@ -26,7 +26,7 @@ class User(AbstractUser): | ||
26 | verification_hash = models.CharField(max_length=32, null=True, blank=True) | 26 | verification_hash = models.CharField(max_length=32, null=True, blank=True) |
27 | modified = models.DateTimeField(auto_now=True) | 27 | modified = models.DateTimeField(auto_now=True) |
28 | bio = models.CharField(max_length=200, null=True, blank=True) | 28 | bio = models.CharField(max_length=200, null=True, blank=True) |
29 | - needs_update = models.BooleanField(default=False) | 29 | + needs_update = models.BooleanField(default=True) |
30 | 30 | ||
31 | def check_password(self, raw_password): | 31 | def check_password(self, raw_password): |
32 | 32 |