It's a reference field (foreign key) and the pull down has no empty value.
It should have (because it can be null), but it doesn't for some reason.

On Wed, Jun 5, 2019, 10:44 PM Dave S <snidely....@gmail.com> wrote:

>
>
> On Wednesday, June 5, 2019 at 3:56:56 PM UTC-7, Vlad wrote:
>>
>> How can I search for None values?
>>
>> For example, the search expression
>>    table.customer == "1"
>> gives me records with customer equals 1.
>> I can't figure out how to search for records with customer field equals
>> None.
>>
>> Tried none,NONE, None, "none", etc. Nothing helped :)
>>
>> Is it possible at all?
>>
>
> Some [pulldown] widgets have an explicit "No Selection" value.  But the
> default for the web2py string widget is a blank line.  Is the search widget
> like that, or does it require input?
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/HoU1SXZvqps/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/38f93fee-fbdf-4731-92b3-2dba557b512a%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/38f93fee-fbdf-4731-92b3-2dba557b512a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CABZ%2BKCA8gDUswuFbpJpq51Rqw_ScxOruJJeJwqy22i4CaGEs6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to