Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add missing migration

Artur Smętb70cf8d6b33e
diff --git a/saleor/userprofile/migrations/0007_auto_20161115_0940.py b/saleor/userprofile/migrations/0007_auto_20161115_0940.py
new file mode 100644
index 0000000000..1491ecfe0a
--- /dev/null
+++ b/saleor/userprofile/migrations/0007_auto_20161115_0940.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.1 on 2016-11-15 15:40
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('userprofile', '0006_auto_20160829_0819'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='address',
+ name='first_name',
+ field=models.CharField(blank=True, max_length=256, verbose_name='given name'),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='last_name',
+ field=models.CharField(blank=True, max_length=256, verbose_name='family name'),
+ ),
+ ]
diff --git a/saleor/userprofile/models.py b/saleor/userprofile/models.py
index 42d1a0e40d..e6a1cb8c82 100644
--- a/saleor/userprofile/models.py
+++ b/saleor/userprofile/models.py
@@ -124,7 +124,7 @@ class User(PermissionsMixin, AbstractBaseUser):
default=False)
is_active = models.BooleanField(
pgettext_lazy('User field', 'active'),
- default=False)
+ default=True)
date_joined = models.DateTimeField(
pgettext_lazy('User field', 'date joined'),
default=timezone.now, editable=False)