Skip to content

Commit

Permalink
Fix an issue on save() (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 authored Aug 2, 2024
1 parent 19f3377 commit 244e271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panther/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from panther.main import Panther # noqa: F401

__version__ = '4.2.5'
__version__ = '4.2.6'


def version():
Expand Down
2 changes: 1 addition & 1 deletion panther/db/queries/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ async def save(self) -> None:
field: getattr(self, field).model_dump()
if issubclass(type(getattr(self, field)), BaseModel)
else getattr(self, field)
for field in self.model_fields_set if field != 'request'
for field in self.model_fields.keys() if field != 'request'
}

if self.id:
Expand Down

0 comments on commit 244e271

Please sign in to comment.