Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django ModelChoiceField value not id

articles = ModelChoiceField(queryset=Articles.objects.all(),
        to_field_name='slug')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #ModelChoiceField #id
ADD COMMENT
Topic
Name
7+7 =