Opened 10 years ago

Closed 10 years ago

#4203 closed (fixed)

Add "Default is False" information to model-api.txt

Reported by: david@… Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords: docs, model-api
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

On page http://www.djangoproject.com/documentation/model-api/

I recommend insertion of text in << >>

...

blank

If True, the field is allowed to be blank. <<Default is False.>>

...

David

Attachments (1)

model-api.txt (463 bytes) - added by david@… 10 years ago.
required patch

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by Chris Beaven

Summary: Default value of blank is falseFor `blank`, add "Default is `False`."
Triage Stage: UnreviewedAccepted

Hi David, thanks for the report. If you're up to it, I'd ask that you modify your model-api.txt file, create a diff and attach that - this is the best way to get tickets in fast ;)

comment:2 Changed 10 years ago by Chris Beaven

Summary: For `blank`, add "Default is `False`."For blank, add "Default is False."

comment:3 Changed 10 years ago by david@…

Happy to help but my django installation does not include a model-api.txt file. What am I missing?

comment:4 Changed 10 years ago by Chris Beaven

If you're using SVN, make sure you check out from trunk, not trunk/django. There is a docs folder located in the trunk root.

comment:5 Changed 10 years ago by david@…

Index: model-api.txt
===================================================================
--- model-api.txt (revision 5148)
+++ model-api.txt (working copy)
@@ -459,7 +459,7 @@

blank
~


-If True, the field is allowed to be blank.
+If True, the field is allowed to be blank. Default is False.

Note that this is different than null. null is purely
database-related, whereas blank is validation-related. If a field has

Changed 10 years ago by david@…

Attachment: model-api.txt added

required patch

comment:6 Changed 10 years ago by Simon G. <dev@…>

Has patch: set
Keywords: docs model-api added
Summary: For blank, add "Default is False."Add "Default is False" information to model-api.txt
Triage Stage: AcceptedReady for checkin

Looks good, thank you

comment:7 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [5166]) Fixed #4203 -- Noted that "blank" defaults to False in models. Thanks,
david@….

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