Skip to content

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

Fix tests

Maciej Korycinskib5f4c6a27e32
diff --git a/saleor/app/migrations/0002_auto_20200430_0701.py b/saleor/app/migrations/0002_auto_20200430_0701.py
index 33065fcf00..74614dd654 100644
--- a/saleor/app/migrations/0002_auto_20200430_0701.py
+++ b/saleor/app/migrations/0002_auto_20200430_0701.py
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="app",
name="identificator",
- field=models.CharField(default="Default", max_length=256),
+ field=models.CharField(blank=True, null=True, max_length=256),
preserve_default=False,
),
migrations.AddField(
diff --git a/saleor/app/models.py b/saleor/app/models.py
index 0d9a295b26..046afcc890 100644
--- a/saleor/app/models.py
+++ b/saleor/app/models.py
@@ -16,7 +16,7 @@ class App(ModelWithMetadata):
type = models.CharField(
choices=AppType.CHOICES, default=AppType.CUSTOM, max_length=60
)
- identificator = models.CharField(max_length=256)
+ identificator = models.CharField(blank=True, null=True, max_length=256)
permissions = models.ManyToManyField(
Permission,
blank=True,