#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018190ac9a27-672fd959-e1d8-4084-b1e2-11f16b090759-000000%40eu-central-1.amazonses.com.