django models delete object code example
Example 1: delete model object django
SomeModel.objects.filter(id=id).delete()
Example 2: objects.filter django
>>> Entry.objects.filter(blog_id=4)
Example 3: create django object
Author.objects.create(name="Joe")