Is it possible to do something similar with list , dictionary or something else?
data_dict = { 'title' : 'awesome title', 'body' : 'great body of text', } Model.objects.create(data_dict)
Even better if I can extend this:
Model.objects.create(data_dict, extra='hello', extra2='world')
python dictionary django django-models django-queryset
clarence Oct. 15 '09 at 10:41 2009-10-15 10:41
source share