DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get data from model with field name in django
field_name = "is_staff" user = User.objects.get(pk=0) field_name_val = getattr(user, field_name)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#data
#model
#field
#django
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit