You can change the form's label to contain self.instance.promotion.description.
--
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
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).
2 matches
Mail list logo