This could be usefull

Model.objects. filter(q='hello', b='world')

Can be expressed as

params ={'q': 'hello', 'b': 'world')
Model.objects.filter (**params)




El martes, 17 de enero de 2017, Branko Zivanovic <
[email protected]> escribió:
> Yes that is true, and I have succeeded in making select menu and checkbox
by using Django's forms and their widgets.
> Thanks anyway!
>
> уторак, 17. јануар 2017. 21.04.51 UTC+1, Fred Stluka је написао/ла:
>>
>> Branko,
>>
>> You may need to explain a little more.
>>
>> It sounds like you have search working when you type the search
>> string into a HTML text box.  True?
>>
>> What do you want to do with the menu and checkbox?  Are you
>> trying to arrange for the text of the menu label and the text of the
>> checkbox label to be combined somehow to form the search
>> string?
>>
>> --Fred
>> ________________________________
>> Fred Stluka -- [email protected] -- http://bristle.com/~fred/
>> Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
>> Open Source: Without walls and fences, we need no Windows or Gates.
>> ________________________________
>> On 1/17/17 9:32 AM, Branko Zivanovic wrote:
>>
>> Thank you for reply!
>> I'm fine with text input but I also want select menu and checkbox. I
want to use it to somehow filter my search.
>> I'm not sure how it fits anyway in bigger picture. How do people make
search with select menu and checkbox?
>> Best,
>> Branko
>>
>> понедељак, 16. јануар 2017. 07.13.44 UTC+1, Constantine Covtushenko је
написао/ла:
>>>
>>> Hi Branco,
>>> Sorry, but can you be more specific?
>>> If you've got the result what is your concern?
>>> Do you only need to switch into forms?
>>> Regards,
>>> Constantine C.
>>> On Sun, Jan 15, 2017 at 2:41 PM, Branko Zivanovic <
[email protected]> wrote:
>>>>
>>>> How do i implement search on django website with select menu and
checkbox? I've succeeded in adding basic text input and it works but I
didn't use django forms. How do I add this type of search?
>>>> --
>>>> You received this message because you are subscribed to the Google
Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/078841f1-a976-4c22-bb2f-ff5069bdce1d%40googlegroups.com
.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google
Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/9fc70bbe-487d-4c4b-8f9a-77ad79281193%40googlegroups.com
.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/642c076f-aafd-46b1-b63c-0a8d174e8595%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyMzx9xCN7pmAHnH%3D_OC3DzvOXEgVeu5f_GeJjMMpMkCaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to