I use newforms for dynamic form.
Here's one of the fields.
assigned_to = forms.MultipleChoiceField(label='담당자',
required=False,
widget=forms.CheckboxSelectMultiple,
choices=[(assignee.id,
assignee.nickname) for assignee
in
models.User.objects.filter(type__gte=models.User.DEVELOPER)])
as you see, choices are dynamically generated.
But when I add new User whose type is DEVELOPER, the form object's
assigend_to's choices are not changed.
it always has the same value.
How to prevent the field caching choices object?
Regards,
KwonNam.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---