Re: Populating a list in a form based on a relationship

2012-02-13 Thread Shawn Milochik
You override the __init__ of the form object and set the .choices property of the form field representing the items. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Populating a list in a form based on a relationship

2012-02-13 Thread dimz25
Hi all, I'm new to django/python. I have been looking through the docs since several days but cannot get it to work. This is probably some common stuff to handle. Here's the situation: My app should display a form based on the Report model. A Report has several fields (reference, na, items) A