mirror of https://github.com/django/django.git
Fixed #9734 -- Typo fix in the custom fields documentation, pointed out by
col16. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1302fe9a35
commit
94f4348728
|
@ -31,12 +31,12 @@ Our example object
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
Creating custom fields requires a bit of attention to detail. To make things
|
Creating custom fields requires a bit of attention to detail. To make things
|
||||||
easier to follow, we'll use a consistent example throughout this document.
|
easier to follow, we'll use a consistent example throughout this document:
|
||||||
Suppose you have a Python object representing the deal of cards in a hand of
|
wrapping a Python object representing the deal of cards in a hand of Bridge_.
|
||||||
Bridge_. (Don't worry, you don't know how to play Bridge to follow this
|
Don't worry, you don't have know how to play Bridge to follow this example.
|
||||||
example. You only need to know that 52 cards are dealt out equally to four
|
You only need to know that 52 cards are dealt out equally to four players, who
|
||||||
players, who are traditionally called *north*, *east*, *south* and *west*.)
|
are traditionally called *north*, *east*, *south* and *west*. Our class looks
|
||||||
Our class looks something like this::
|
something like this::
|
||||||
|
|
||||||
class Hand(object):
|
class Hand(object):
|
||||||
def __init__(self, north, east, south, west):
|
def __init__(self, north, east, south, west):
|
||||||
|
|
Loading…
Reference in New Issue