Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django pass list of fields to values

values = ['first_name', 'email']
u = User.objects.all().values(*values)
 
PREVIOUS NEXT
Tagged: #django #pass #list #fields #values
ADD COMMENT
Topic
Name
7+2 =