Skip to content

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

* Add migration file

akjanik44b1224af4d2
diff --git a/saleor/settings.py b/saleor/settings.py
index d0393cf1b3..e48d43372d 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -419,6 +419,7 @@ CELERY_RESULT_BACKEND = 'django-db'
# Impersonate module settings
IMPERSONATE_URI_EXCLUSIONS = [r'^dashboard/']
-IMPERSONATE_CUSTOM_USER_QUERYSET = 'saleor.userprofile.impersonate.get_impersonatable_users'
+IMPERSONATE_CUSTOM_USER_QUERYSET = \
+ 'saleor.userprofile.impersonate.get_impersonatable_users'
IMPERSONATE_USE_HTTP_REFERER = True
IMPERSONATE_CUSTOM_ALLOW = 'saleor.userprofile.impersonate.can_impersonate'
diff --git a/saleor/userprofile/migrations/0011_auto_20171113_0355.py b/saleor/userprofile/migrations/0011_auto_20171113_0355.py
deleted file mode 100644
index 5152d331af..0000000000
--- a/saleor/userprofile/migrations/0011_auto_20171113_0355.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.5 on 2017-11-13 09:55
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('userprofile', '0010_auto_20170919_0839'),
- ]
-
- operations = [
- migrations.AlterModelOptions(
- name='user',
- options={'permissions': (('view_user', 'Can view users'), ('edit_user', 'Can edit users'), ('impersonate_user', 'Can impersonate users')), 'verbose_name': 'user', 'verbose_name_plural': 'users'},
- ),
- ]
diff --git a/saleor/userprofile/migrations/0011_auto_20171117_0733.py b/saleor/userprofile/migrations/0011_auto_20171117_0733.py
deleted file mode 100644
index 59becf7d19..0000000000
--- a/saleor/userprofile/migrations/0011_auto_20171117_0733.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.5 on 2017-11-17 13:33
-from __future__ import unicode_literals
-
-from django.db import migrations
-import phonenumber_field.modelfields
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('userprofile', '0010_auto_20170919_0839'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='address',
- name='phone',
- field=phonenumber_field.modelfields.PhoneNumberField(blank=True, default='', max_length=128, verbose_name='phone number'),
- ),
- ]
diff --git a/saleor/userprofile/migrations/0012_auto_20171117_0811.py b/saleor/userprofile/migrations/0012_auto_20171117_0811.py
deleted file mode 100644
index 56a813e6c0..0000000000
--- a/saleor/userprofile/migrations/0012_auto_20171117_0811.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.5 on 2017-11-17 14:11
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('userprofile', '0011_auto_20171117_0733'),
- ]
-
- operations = [
- ]
diff --git a/saleor/userprofile/migrations/0012_auto_20171117_0846.py b/saleor/userprofile/migrations/0012_auto_20171117_0846.py
new file mode 100644
index 0000000000..ef55412b6a
--- /dev/null
+++ b/saleor/userprofile/migrations/0012_auto_20171117_0846.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2017-11-17 14:46
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('userprofile', '0011_auto_20171110_0552'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='user',
+ options={'permissions': (('view_user', 'Can view users'), ('edit_user', 'Can edit users'), ('view_group', 'Can view groups'), ('edit_group', 'Can edit groups'), ('view_staff', 'Can view staff'), ('edit_staff', 'Can edit staff'), ('impersonate_user', 'Can impersonate users')), 'verbose_name': 'user', 'verbose_name_plural': 'users'},
+ ),
+ ]
diff --git a/tests/conftest.py b/tests/conftest.py
index 48f3d8aa6e..8f094ffcbd 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -514,5 +514,6 @@ def permission_edit_settings():
return Permission.objects.get(codename='edit_settings')
def permission_impersonate_user():
return Permission.objects.get(codename='impersonate_user')