Skip to content

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

Drop verbose_name from account and warehouse models

IKarbowiak92df8fed2069
diff --git a/saleor/account/migrations/0038_auto_20200123_0034.py b/saleor/account/migrations/0038_auto_20200123_0034.py
new file mode 100644
index 0000000000..379e62cc9d
--- /dev/null
+++ b/saleor/account/migrations/0038_auto_20200123_0034.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.2.9 on 2020-01-23 06:34
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("account", "0037_auto_20191219_0944"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="serviceaccount",
+ name="permissions",
+ field=models.ManyToManyField(
+ blank=True,
+ help_text="Specific permissions for this service.",
+ related_name="service_set",
+ related_query_name="service",
+ to="auth.Permission",
+ ),
+ ),
+ ]
diff --git a/saleor/account/models.py b/saleor/account/models.py
index 6ca52bcad7..819f5f416d 100644
--- a/saleor/account/models.py
+++ b/saleor/account/models.py
@@ -185,7 +185,6 @@ class ServiceAccount(ModelWithMetadata):
is_active = models.BooleanField(default=True)
permissions = models.ManyToManyField(
Permission,
- verbose_name="service account permissions",
blank=True,
help_text="Specific permissions for this service.",
related_name="service_set",
diff --git a/saleor/warehouse/migrations/0002_auto_20200123_0036.py b/saleor/warehouse/migrations/0002_auto_20200123_0036.py
new file mode 100644
index 0000000000..f7da98b6a8
--- /dev/null
+++ b/saleor/warehouse/migrations/0002_auto_20200123_0036.py
@@ -0,0 +1,26 @@
+# Generated by Django 2.2.9 on 2020-01-23 06:36
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("warehouse", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="warehouse",
+ name="company_name",
+ field=models.CharField(blank=True, max_length=255),
+ ),
+ migrations.AlterField(
+ model_name="warehouse",
+ name="email",
+ field=models.EmailField(blank=True, default="", max_length=254),
+ ),
+ migrations.AlterField(
+ model_name="warehouse", name="name", field=models.CharField(max_length=255),
+ ),
+ ]
diff --git a/saleor/warehouse/models.py b/saleor/warehouse/models.py
index c815aa2ba5..0b8ce8a8b7 100644
--- a/saleor/warehouse/models.py
+++ b/saleor/warehouse/models.py
@@ -21,13 +21,13 @@ class WarehouseQueryset(models.QuerySet):
class Warehouse(models.Model):
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
- name = models.CharField("Warehouse name", max_length=255)
- company_name = models.CharField("Legal company name", blank=True, max_length=255)
+ name = models.CharField(max_length=255)
+ company_name = models.CharField(blank=True, max_length=255)
shipping_zones = models.ManyToManyField(ShippingZone, blank=True)
address = models.ForeignKey(Address, on_delete=models.PROTECT)
- email = models.EmailField("Email address", blank=True, default="")
+ email = models.EmailField(blank=True, default="")
objects = WarehouseQueryset.as_manager()