Opened 10 years ago

Closed 9 years ago

#3328 closed (wontfix)

null=True should imply blank=True

Reported by: SmileyChris Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


For models, I can't ever think of a case when you would want null=True and not want blank=True. If there is, it's definitely rare, so having to enter both for the normal case seems redundant.

Currently, for model fields, blank always defaults to False.

This proposal is that blank is set to whatever null is set to unless explicitly given.

Attachments (1)

imply_blank.patch (1.6 KB) - added by SmileyChris 10 years ago.
patch, including doc

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by SmileyChris

patch, including doc

comment:1 Changed 10 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 9 years ago by ubernostrum

  • Resolution set to wontfix
  • Status changed from new to closed

These options need to remain separate; I can think of use cases where you'd want to require the user to input something, and then decide whether to store it in the DB during processing.

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