You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the documentations here are not clear about how to use the undelte and queryset.
from safedelete.queryset import SafeDeleteQueryset
event = Event.objects.create(created_by=self.user, title='event',end=self.after_1_d)
event.delete()
icprintEvent.objects.count())
# should I get the object by id or smthing? print(SafeDeleteQueryset.undelete(query={"id":event.id}))
# should I do SafeDeleteQueryset.all()
# print(Event.objects.count())
The text was updated successfully, but these errors were encountered:
You can a delete a record completely SoftDeleteRecord.objects.filter(id=5).delete()
You can do hard delete for all records SoftDeleteRecord.objects.filter(id__isnull=False).delete()
You can query the deleted records for specific table using the content type like this SoftDeleteRecord.objects.filter(content_type__model="Event")
Delete the change set ChangeSet.objects.filter().delete()
the documentations here are not clear about how to use the undelte and queryset.
The text was updated successfully, but these errors were encountered: