Tuesday, 10 September 2013

how to extract model object from form in template using django

how to extract model object from form in template using django

I have a formset. I want to extract out the id of the model object that
each form in the set represents.
This is because I plan to use a template tag to pass this id to a function
and return a related object.
How can I do this?

No comments:

Post a Comment