Help on displaying related-object details on ModelForm
Hello fellow django developers,
I have a model Project that has a foreign key to promotion, I have
created a ModelForm for Project and changed the widget to use a
RadioSelect.
The form shows fine with all options displaying the objects unicode
representation (in this case the promotion name). But, Promotion
object also has an attribute called 'description'.
Now, I want to show the promotion description next to the radio entry.
So the rendered HTML shows the radio button then the promotion name,
then the promotion description. So the user can read the details of
all the promotions listed there.
Is this even possible? It would be kind of of the "help_text" for each
of the choices available.
Thanks for the help
Luis Montiel
--
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 unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home