Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django create object from dict

# create instance of model
m = MyModel(**data_dict)
# don't forget to save to database!
m.save()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #create #object #dict
ADD COMMENT
Topic
Name
3+4 =