Skip to content

How to query all deleted items and how to deleted specific one #80

@AlenSci

Description

@AlenSci

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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions