From 3cd12423fe871da1ac1d1afe4dc5b3a2882d88d9 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sun, 7 Sep 2025 01:16:48 +0300 Subject: [PATCH] Features: 1) Add migration to update `verbose_name` and `verbose_name_plural` for `CustomerRelationshipManagementProvider`. Fixes: 1) Correct `verbose_name` and `verbose_name_plural` in `CustomerRelationshipManagementProvider` model. Extra: 1) None. --- ...merrelationshipmanagementprovider_options.py | 17 +++++++++++++++++ core/models.py | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 core/migrations/0041_alter_customerrelationshipmanagementprovider_options.py diff --git a/core/migrations/0041_alter_customerrelationshipmanagementprovider_options.py b/core/migrations/0041_alter_customerrelationshipmanagementprovider_options.py new file mode 100644 index 00000000..cf581e7d --- /dev/null +++ b/core/migrations/0041_alter_customerrelationshipmanagementprovider_options.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2 on 2025-09-06 22:16 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0040_customerrelationshipmanagementprovider_ordercrmlink"), + ] + + operations = [ + migrations.AlterModelOptions( + name="customerrelationshipmanagementprovider", + options={"verbose_name": "CRM", "verbose_name_plural": "CRMs"}, + ), + ] diff --git a/core/models.py b/core/models.py index 757f8d9c..c86fd60c 100644 --- a/core/models.py +++ b/core/models.py @@ -1977,8 +1977,8 @@ class CustomerRelationshipManagementProvider(ExportModelOperationsMixin("crm_pro super().save(**kwargs) class Meta: - verbose_name = _("order CRM link") - verbose_name_plural = _("orders CRM links") + verbose_name = _("CRM") + verbose_name_plural = _("CRMs") class OrderCrmLink(ExportModelOperationsMixin("order_crm_link"), NiceModel):