Modellobjekt Django löschen
SomeModel.objects.filter(id=id).delete()
Noobie Nareshhhh
SomeModel.objects.filter(id=id).delete()
SomeModel.objects.create(firstname='ricky', lastname='ticky')
>>> b = Blog.objects.get(pk=1)
# Delete all the entries belonging to this Blog.
>>> Entry.objects.filter(blog=b).delete()
(4, {'weblog.Entry': 2, 'weblog.Entry_authors': 2})
>>> one_entry = Entry.objects.get(pk=1)