Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you need to restore a deleted object instead of re-creating the same one use
class Permanent:
restore_on_create = True

In this case ``QuerySet`` provides check existence of same attribute objects and restores them if they've been deleted, creating new ones if not.
In this case, ``MyModel.objects.create(...)`` checks for the existence of a soft-deleted object with the same attributes, restoring it if it exists, creating a new one if not. Note that this does not work when creating a new object with ``my_model.save()``.

Managers
========
Expand Down