From 0830f0b480cfc08ead53c18ba03c92bc17529df5 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Sun, 3 Jan 2010 22:44:27 +0000 Subject: [PATCH] Updated docs to reflect validation changes --- docs/tutorial.rst | 3 +-- docs/userguide.rst | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 54a04c0b..5db2c4df 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -161,8 +161,7 @@ object:: john = User(email='jdoe@example.com', first_name='John', last_name='Doe') john.save() -Note that only fields with ``required=True`` need to be specified in the -constructor, we could have also defined our user using attribute syntax:: +Note that we could have also defined our user using attribute syntax:: john = User(email='jdoe@example.com') john.first_name = 'John' diff --git a/docs/userguide.rst b/docs/userguide.rst index 294a0de0..12059f89 100644 --- a/docs/userguide.rst +++ b/docs/userguide.rst @@ -194,8 +194,7 @@ Documents instances =================== To create a new document object, create an instance of the relevant document class, providing values for its fields as its constructor keyword arguments. -You may provide values for any of the fields on the document, but only -**required** fields are necessary at this stage:: +You may provide values for any of the fields on the document:: >>> page = Page(title="Test Page") >>> page.title