DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to get foregine key field from models
>>
>
SubCategory
.
_meta
.
get_field
(
'category'
)
.
remote_field
.
model
.
__name__
>>
>
'Category'
PREVIOUS
NEXT
Tagged:
#foregine
#key
#field
#models
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit