On 24/01/2013 2:36am, frocco wrote:
Hello,

In my view, I am displaying rows of data that have a choice field in a form.
one form for each row

I want to change the choice this before printing.

one row can have 1 to 5 choices
another row can have 1 to 10 choices depending on values in each row.

I'm likely to want something similar soon so I googled "how do I dynamically modify a django choice field" and got at least a page of results. Here is one which I looked at and found interesting. It may suit your needs ...

http://ilian.i-n-i.org/django-forms-choicefield-with-dynamic-values/

Good luck

Mike


--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/BSrfbUYb_v8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to