ModelQueryForm - does it exist?
Has anyone written a ModelQueryForm class that subclasses
BaseModelForm and implements a query function
The idea would be to have a convenience form class that you can use to
create quick, model based, search forms.
The view would be mostly like view based around ModelForm CRUD -
except instead of calling clean/save methods on the bound form, one
would call a 'query' method that would return a queryset, which the
form could then add to the render context to the template as
"results".
-Preston
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home