Django

Code

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  
    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):