I have a lot of objects to save in database, and so I want to create Model instances with that.
With django, I can create all the models instances, with MyMode
MyMode
for a single line implementation, you can use a lambda expression in a map
map(lambda x:MyModel.objects.get_or_create(name=x), items)
Here, lambda matches each item in items list to x and create a Database record if necessary.
Lambda Documentation