Opened 13 years ago
Closed 13 years ago
#19341 closed Bug (fixed)
inspectdb BooleanField instead of NullBooleanField where Null=True
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | 1.5-alpha-1 |
| Severity: | Normal | Keywords: | inspectdb BooleanField NullBooleanField |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Where db field is bool and null=True, inspectdb outputs:
<fieldname> = models.BooleanField(Null=True,...)
instead of models.NullBooleanField(Null=True,...)
Attachments (1)
Change History (4)
comment:1 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
by , 13 years ago
| Attachment: | 19341-1.diff added |
|---|
comment:3 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Detect NullBooleanField in inspectdb