<david.pullman@gmail.com> wrote:
> Thanks very much for helping to separate the processing. I'm trying to implement a setup using your suggestions. I've hit a snag on a detail:
>
>> class SearchForm(forms.Form):
>> organization = forms.ModelField(Organization)
>> search_term = forms.CharField(max_length=100)
>
> What's a ModelField? I was unable to find it in a search on docs.djangoproject.com. I found it referred to in an abstract way on a google search, but not as an actual attribute name.
>
100% certain that was just a brain fade on Russell's part, it should
be forms.ModelChoiceField
https://docs.djangoproject.com/en/1.3/ref/forms/fields/#modelchoicefield
Cheers
Tom
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment