Opened 18 years ago

Closed 18 years ago

#4203 closed (fixed)

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

Reported by: david@… Owned by: Jacob
Component: Documentation Version: dev
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: no UI/UX: no

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@… 18 years ago.
required patch

Download all attachments as: .zip

Change History (8)

comment:1 by Chris Beaven, 18 years ago

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 by Chris Beaven, 18 years ago

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

comment:3 by david@…, 18 years ago

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

comment:4 by Chris Beaven, 18 years ago

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 by david@…, 18 years ago

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

by david@…, 18 years ago

Attachment: model-api.txt added

required patch

comment:6 by Simon G. <dev@…>, 18 years ago

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 by Malcolm Tredinnick, 18 years ago

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