SyntaxFix
Write A Post
Hire A Developer
Questions
There are a couple of ways:
To delete it directly:
SomeModel.objects.filter(id=id).delete()
To delete it from an instance:
instance1 = SomeModel.objects.get(id=id) instance1.delete()
// don't use same name