django all objects code example
Example 1: django objects.create()
SomeModel.objects.create(firstname='ricky', lastname='ticky')
Example 2: objects.filter django
>>> Entry.objects.filter(blog_id=4)
SomeModel.objects.create(firstname='ricky', lastname='ticky')
>>> Entry.objects.filter(blog_id=4)