Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

update in django orm

# Update all the headlines with pub_date in 2007.
Entry.objects.filter(pub_date__year=2007).update(headline='Everything is the same')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #update #django #orm
ADD COMMENT
Topic
Name
1+3 =