Tuesday, May 21, 2013

Custom RadioSelect() Label from Model Data

Hello, is there a way to get a Custom Label for a RadioSelect() widget?

I have a Model and wanted to get a label like:

'<label for="id_customer_0">
<input type="radio" value="1" name="customer" id="id_customer_0">
{{ customer.name }}
{{ customer.address.city }}
{{ customer.address.zip }}
</label>'

Is there a way to get certain output?
I heard about the RadioSelect Renderer but i can only access the __unicode__ output i definied for the model. Is there a better / other way to implement such functionallity?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate