Opened 18 months ago

Closed 17 months ago

Last modified 17 months ago

#29227 closed Cleanup/optimization (fixed)

Allow BooleanField to be null=True

Reported by: Tim Graham Owned by: Tim Graham
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This will remove the wart of NullBooleanField and help solve other issues like #23130.

Change History (4)

comment:1 Changed 18 months ago by Tim Graham

Has patch: set

comment:2 Changed 17 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 5fa4f40f:

Fixed #29227 -- Allowed BooleanField to be null=True.

Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.

comment:3 Changed 17 months ago by Tim Graham <timograham@…>

In 6421bd70:

Refs #29227 -- Made inspectdb generate BooleanField(null=True) rather than NullBooleanField.

comment:4 Changed 17 months ago by Tim Graham <timograham@…>

In 281c022:

Refs #29227 -- Simplified NullBooleanField by making it subclass BooleanField.

Note: See TracTickets for help on using tickets.
Back to Top