diff --git a/cg/store/models.py b/cg/store/models.py index 36d9413126..60a33460f2 100644 --- a/cg/store/models.py +++ b/cg/store/models.py @@ -967,7 +967,7 @@ class Order(Base): cases: Mapped[list[Case]] = orm.relationship(secondary=order_case, back_populates="orders") customer_id: Mapped[int] = mapped_column(ForeignKey("customer.id")) customer: Mapped[Customer] = orm.relationship(foreign_keys=[customer_id]) - order_date: Mapped[datetime] = mapped_column(default=datetime.now()) + order_date: Mapped[datetime] = mapped_column(default=datetime.now) ticket_id: Mapped[int] = mapped_column(unique=True, index=True) workflow: Mapped[str] = mapped_column(types.Enum(*(workflow.value for workflow in Workflow))) is_delivered: Mapped[bool] = mapped_column(default=False)