[Django] #33801: IsNull Lookup requesting a attribute from RHS while it is force to be of type bool

8 views
Skip to first unread message

Django

unread,
Jun 23, 2022, 9:07:23 AM6/23/22
to django-...@googlegroups.com
#33801: IsNull Lookup requesting a attribute from RHS while it is force to be of
type bool
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
BartKalkman |
Type: Bug | Status: new
Component: Database | Version: 4.0
layer (models, ORM) | Keywords: Lookup, IsNull,
Severity: Normal | Models
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
When using the {{{ django.db.models.lookups.IsNull }}} directly it forces
you to use a bool for the RHS, else you will get an error saying to use
True of False.
When using True or False you will get an error saying {{{ AttributeError:
'bool' object has no attribute 'resolve_expression' }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33801>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 23, 2022, 9:34:01 AM6/23/22
to django-...@googlegroups.com
#33801: IsNull Lookup requesting a attribute from RHS while it is force to be of
type bool
-------------------------------------+-------------------------------------
Reporter: Bart Kalkman | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 4.0
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: Lookup, IsNull, | Triage Stage:
Models | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #33705, fixed in Django 4.0.5 (see
9f5548952906c6ea97200c016734b4f519520a64).

--
Ticket URL: <https://code.djangoproject.com/ticket/33801#comment:1>

Reply all
Reply to author
Forward
0 new messages