Skip to content

Commit 60aa829

Browse files
fix: Corrected exclude parameter to accept valid arguments (#35)
1 parent dd5f134 commit 60aa829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_slug}}/backend/app/app/schemas/base_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class BaseSchema(BaseModel):
1212
@property
1313
def as_db_dict(self):
14-
to_db = self.model_dump(exclude_defaults=True, exclude_none=True, exclude={"identifier, id"})
14+
to_db = self.model_dump(exclude_defaults=True, exclude_none=True, exclude={"identifier", "id"})
1515
for key in ["id", "identifier"]:
1616
if key in self.model_dump().keys():
1717
to_db[key] = self.model_dump()[key].hex

0 commit comments

Comments
 (0)