Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

DJANGO model instance get by variable

getattr(model, fieldtoget)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #DJANGO #model #instance #variable
ADD COMMENT
Topic
Name
9+4 =