python 3.x - Get object instances in template using ModelMultipleChoiceField/CheckboxSelectMultiple in Django -
with code managed object's pk , name (return value of __str__ method), need access object instance (i need of methods/fields in template). how can that?
{% value, name in form.stuffs.field.choices %} {{ value }} + {{ name }} {% endfor %}
Comments
Post a Comment