I'm brainstorming a search function for the user that is similar to
iTunes Smart Playlists. I can currently display all of the release
years for all of the films in the database. A user can pick a year and
see all of the films released in that year. Or I can show all of the
genres of movie. A user can choose a genre and see all of the movies
that match that criteria.

What I want is a form that the user can dynamically choose their own
criteria. So for instance "Release Date" "is after" "2000" AND "Genre"
"is not" "Horror" would return a filtered list. All of these choices
would be user supplied within a form that has dropdown choices.

It seems simple from a SQL point of view, but I'm wondering what the
best implementation would be from to go from a django form to MySQL.
The above is an example.  In practice, I would want to dynamically
populate the filter criteria/fields. Any suggestions on a starting
point?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to