Updated docs to reflect validation changes
This commit is contained in:
		| @@ -161,8 +161,7 @@ object:: | |||||||
|     john = User(email='jdoe@example.com', first_name='John', last_name='Doe') |     john = User(email='jdoe@example.com', first_name='John', last_name='Doe') | ||||||
|     john.save() |     john.save() | ||||||
|  |  | ||||||
| Note that only fields with ``required=True`` need to be specified in the | Note that we could have also defined our user using attribute syntax:: | ||||||
| constructor, we could have also defined our user using attribute syntax:: |  | ||||||
|  |  | ||||||
|     john = User(email='jdoe@example.com') |     john = User(email='jdoe@example.com') | ||||||
|     john.first_name = 'John' |     john.first_name = 'John' | ||||||
|   | |||||||
| @@ -194,8 +194,7 @@ Documents instances | |||||||
| =================== | =================== | ||||||
| To create a new document object, create an instance of the relevant document | To create a new document object, create an instance of the relevant document | ||||||
| class, providing values for its fields as its constructor keyword arguments. | 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 | You may provide values for any of the fields on the document:: | ||||||
| **required** fields are necessary at this stage:: |  | ||||||
|      |      | ||||||
|     >>> page = Page(title="Test Page") |     >>> page = Page(title="Test Page") | ||||||
|     >>> page.title |     >>> page.title | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user