Opened 2 years ago
Closed 2 years ago
#33801 closed Bug (duplicate)
IsNull Lookup requesting a attribute from RHS while it is force to be of type bool
Reported by: | Bart Kalkman | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.0 |
Severity: | Normal | Keywords: | Lookup, IsNull, Models |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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'
Note:
See TracTickets
for help on using tickets.
Duplicate of #33705, fixed in Django 4.0.5 (see 9f5548952906c6ea97200c016734b4f519520a64).