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

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

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

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -