We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906b007 commit 31015c4Copy full SHA for 31015c4
1 file changed
advanced_alchemy/mixins/softdelete.py
@@ -35,4 +35,9 @@ def set_deleted_at(self, timestamp: datetime | None = None) -> None:
35
self.deleted_at = timestamp or datetime.now(timezone.utc)
36
37
def restore(self) -> None:
38
+ """Restore a soft-deleted record by clearing the deleted_at timestamp.
39
+
40
+ This method undeletes a previously soft-deleted record by setting the deleted_at
41
+ field to None, making it visible in normal queries again.
42
+ """
43
self.deleted_at = None
0 commit comments