If you use old forms.. you'd just do something like this .. for each of the attributes you want to search on.
class MyManipulator(forms.Manipulator): def __init__(self): sizes = [] all_sizes = Size.objects.all() if all_sizes: sizes = [(obj.name, obj.name) for obj in all_sizes] self.fields = ( forms.SelectField(field_name="size", is_required=False,choices=sizes), ) On Feb 19, 3:57 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Feb 19, 3:53 pm, Adam Stein <[EMAIL PROTECTED]> wrote: > > > I can upgrade to the current trunk. The whole Django application is > > completely under my control. 'newforms' seems to already be in v0.96 > > (since I'm able to use form_for_model() out of newforms), don't know > > about 'ModelForm'. > > Sorry, I was unclear. Newforms started off in 0.96 but has evolved > quite heavily through the trunk. In particular, the ModelForm's > mechanism is new in development and not available in 0.96. > > For a quick intro see:http://www.djangoproject.com/documentation/modelforms/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---