Hey,

I'd like to help out.  But there is limited information to go on.
Those options, are that all seperate attributes of your object, or is
it one more general 'description' attribute with those different
options.
How do you want to filter it, when and what exactly?

I'm thinking you want to apply a filter, show the result, and then the
user can apply the next filter, show result etc...
You're probably thinking in the line of, how do I 'remember' all the
previous filters so I can apply them on my DB.

It might be a lot easier to keep the initial list in memory somewhere
and just apply the next filter on the already filtered list, then just
update the list and repeat.
Another option is having 1 form to do all filters at once.

It's a good idea to give some kind of an example so we have a better
idea of what you are trying to do.

cheers.

On Jan 20, 4:08 pm, tximo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem concerning the database api. I'm using a model called
> products and these products can have up to five options like 'black',
> 'high price', 'big'.
>
> When I'm showing an article list, you can set multiple filters for
> articles you like to see. The selected filter will be stored in
> sessions, so with every step you can specify your selection.
>
> The problem is how to write an elegant lookup to set the filter for
> the products?
>
> In raw sql I could write a custum query string with multiple if-
> options. But I don't like that.
>
> Does anyone have had a different problem and has a solution to it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to