We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
item.delete(force_policy=HARD_DELETE)
I have the following model
class User(SafeDeleteModel, AbstractUser, PermissionsMixin, BaseModel): name = models.CharField( blank=True, null=True, max_length=255)
I tried this.
from safedelete import HARD_DELETE, HARD_DELETE_NOCASCADE item = User.objects.get(id=3) item.delete(force_policy=HARD_DELETE)
but when I say User.objects.get(id=3) I am still getting the user instead of a 404 error.
User.objects.get(id=3)
The text was updated successfully, but these errors were encountered:
I added this to the current hard delete test and it works fine: a462d37
What version of safedelete do you have? Are you overwriting the delete method of your model?
Sorry, something went wrong.
"version": "==1.1.2"
No branches or pull requests
I have the following model
I tried this.
but when I say
User.objects.get(id=3)
I am still getting the user instead of a 404 error.The text was updated successfully, but these errors were encountered: