feat: added tags for cards, aligned status headers
This commit is contained in:
@@ -9,6 +9,7 @@ if TYPE_CHECKING:
|
||||
from board import Board
|
||||
from attribute import Attribute
|
||||
from module import Module
|
||||
from card_tag import CardTag
|
||||
|
||||
|
||||
class Project(BaseModel):
|
||||
@@ -27,7 +28,6 @@ class Project(BaseModel):
|
||||
|
||||
attributes: Mapped[list['Attribute']] = relationship(
|
||||
'Attribute',
|
||||
uselist=True,
|
||||
secondary='project_attribute',
|
||||
back_populates='projects',
|
||||
lazy='selectin',
|
||||
@@ -35,10 +35,16 @@ class Project(BaseModel):
|
||||
|
||||
modules: Mapped[list['Module']] = relationship(
|
||||
'Module',
|
||||
uselist=True,
|
||||
secondary='project_module',
|
||||
back_populates='projects',
|
||||
lazy='selectin',
|
||||
order_by='asc(Module.id)',
|
||||
)
|
||||
|
||||
tags: Mapped[list['CardTag']] = relationship(
|
||||
'CardTag',
|
||||
back_populates='project',
|
||||
primaryjoin="and_(Project.id == CardTag.project_id, CardTag.is_deleted == False)",
|
||||
order_by='asc(CardTag.id)',
|
||||
lazy='selectin',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user