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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -