If I understand what you are asking, choices can be set to a function,
as long as it returns the correct format. If you return a generator I
think there is a  bug that will only call it the first time the form
is rendered (e.g. if there is an error in the form the choices won't
show up when it renders again). To get around this wrap the function
call in  a list so it is forced to be evaluated, i.e choices =
list(my_function())..

Hope that helps.

[EMAIL PROTECTED] wrote:
> how?


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to