From c1196497d4030ea054d77cdc5e2762a83b889e75 Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Mon, 27 Oct 2025 17:32:02 +0400 Subject: [PATCH] fix: removed attr is_shown_on_dashboard --- models/attribute.py | 8 -------- schemas/attribute.py | 6 ------ services/attribute.py | 2 -- 3 files changed, 16 deletions(-) diff --git a/models/attribute.py b/models/attribute.py index e32932f..2d069b4 100644 --- a/models/attribute.py +++ b/models/attribute.py @@ -39,14 +39,6 @@ class Attribute(BaseModel, IdMixin, SoftDeleteMixin): default=False, comment="Применять ли изменения атрибута карточки ко всем карточкам в группе", ) - is_shown_on_dashboard: Mapped[bool] = mapped_column( - default=False, - comment="Отображается ли атрибут на дашборде", - ) - is_highlight_if_expired: Mapped[bool] = mapped_column( - default=False, - comment="Подсветка атрибута, если Дата/ДатаВремя просрочена", - ) is_nullable: Mapped[bool] = mapped_column(default=False) default_value: Mapped[Optional[dict[str, any]]] = mapped_column(JSONB) description: Mapped[str] = mapped_column(default="") diff --git a/schemas/attribute.py b/schemas/attribute.py index 62f1031..91bf705 100644 --- a/schemas/attribute.py +++ b/schemas/attribute.py @@ -15,8 +15,6 @@ class AttributeTypeSchema(BaseSchema): class CreateAttributeSchema(BaseSchema): label: str is_applicable_to_group: bool - is_shown_on_dashboard: bool - is_highlight_if_expired: bool is_nullable: bool default_value: Optional[dict[str, Any]] description: str @@ -32,8 +30,6 @@ class AttributeSchema(CreateAttributeSchema): class UpdateAttributeSchema(BaseSchema): label: Optional[str] = None is_applicable_to_group: Optional[bool] = None - is_shown_on_dashboard: Optional[bool] = None - is_highlight_if_expired: Optional[bool] = None is_nullable: Optional[bool] = None default_value: Optional[dict[str, Any]] = None description: Optional[str] = None @@ -53,8 +49,6 @@ class DealModuleAttributeSchema(BaseSchema): default_value: dict[str, Any] description: str is_applicable_to_group: bool - is_shown_on_dashboard: bool - is_highlight_if_expired: bool is_nullable: bool diff --git a/services/attribute.py b/services/attribute.py index 253d1f8..1883192 100644 --- a/services/attribute.py +++ b/services/attribute.py @@ -48,8 +48,6 @@ class AttributeService( default_value=attr.default_value, description=attr.description, is_applicable_to_group=attr.is_applicable_to_group, - is_shown_on_dashboard=attr.is_shown_on_dashboard, - is_highlight_if_expired=attr.is_highlight_if_expired, is_nullable=attr.is_nullable, ) attributes.append(attribute)