Ticket #9734: 9734.diff

File 9734.diff, 1012 bytes (added by Jeff Anderson, 16 years ago)
  • docs/howto/custom-model-fields.txt

    diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
    index 57c805e..12ea6ca 100644
    a b Our example object  
    3333Creating custom fields requires a bit of attention to detail. To make things
    3434easier to follow, we'll use a consistent example throughout this document.
    3535Suppose 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 this
     36Bridge_. (Don't worry, you don't have to know how to play Bridge to follow this
    3737example. 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 Our class looks something like this::
     38players, who are traditionally called *north*, *east*, *south* and *west*.) Our
     39class looks something like this::
    4040
    4141    class Hand(object):
    4242        def __init__(self, north, east, south, west):
Back to Top