Ticket #9734: 9734.diff
| File 9734.diff, 1.0 kB (added by programmerq, 1 year ago) |
|---|
-
a/docs/howto/custom-model-fields.txt
old new 33 33 Creating custom fields requires a bit of attention to detail. To make things 34 34 easier to follow, we'll use a consistent example throughout this document. 35 35 Suppose you have a Python object representing the deal of cards in a hand of 36 Bridge_. (Don't worry, you don't know how to play Bridge to follow this36 Bridge_. (Don't worry, you don't have to know how to play Bridge to follow this 37 37 example. You only need to know that 52 cards are dealt out equally to four 38 players, who are traditionally called *north*, *east*, *south* and *west*.) 39 Ourclass looks something like this::38 players, who are traditionally called *north*, *east*, *south* and *west*.) Our 39 class looks something like this:: 40 40 41 41 class Hand(object): 42 42 def __init__(self, north, east, south, west):
