From bb5c7e4e8d783bf3a2880ab5cf1fa57fd35cd198 Mon Sep 17 00:00:00 2001 From: Mike Fogel Date: Fri, 11 Apr 2014 23:58:56 -0400 Subject: [1.7.x] Fixed #22537 -- Add tests and improved docs for field subclass with choices. Backport of 7fd1b35ed7 from master --- docs/ref/models/fields.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 3a43d51560..ed53b49e86 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -83,8 +83,8 @@ two items (e.g. ``[(A, B), (A, B) ...]``) to use as choices for this field. If this is given, the default form widget will be a select box with these choices instead of the standard text field. -The first element in each tuple is the actual value to be stored, and the -second element is the human-readable name. For example:: +The first element in each tuple is the actual value to be set on the model, +and the second element is the human-readable name. For example:: YEAR_IN_SCHOOL_CHOICES = ( ('FR', 'Freshman'), -- cgit v1.3