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