fix: removed attr is_shown_on_dashboard

This commit is contained in:
2025-10-27 17:32:02 +04:00
parent 759a8d6478
commit c1196497d4
3 changed files with 0 additions and 16 deletions

View File

@ -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="")

View File

@ -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

View File

@ -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)