Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django update increment

Entry.objects.filter(is_published=True).update(views=F('views')+1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #update #increment
ADD COMMENT
Topic
Name
3+3 =