Skip to content

Commit e9d1605

Browse files
committed
fix: database decorator @declared_attr.directive
1 parent 6654e2e commit e9d1605

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/dao/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Base(AsyncAttrs, DeclarativeBase):
3131
TIMESTAMP, server_default=func.now(), onupdate=func.now()
3232
)
3333

34-
@declared_attr
34+
@declared_attr.directive
3535
def __tablename__(cls) -> str:
3636
return cls.__name__.lower() + "s"
3737

0 commit comments

Comments
 (0)