Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

admin.tabularinline access values via a foreign key

"""
You simply need to add the field you want to access in the readonly_fields:
Something like the following:
"""
readonly_fields = ('product', 'rank', 'account_type')
 
PREVIOUS NEXT
Tagged: #access #values #foreign #key
ADD COMMENT
Topic
Name
7+7 =