Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5892, #5930 -- Fixed some typos pointed out by ars@iki.fi and …

…nickl.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 84c1e785512438cb23161c0b10ec228c8dd846b4 1 parent a5e960d
Malcolm Tredinnick authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  docs/custom_model_fields.txt
10  docs/custom_model_fields.txt
@@ -56,7 +56,7 @@ would like to be able to things like this in our models (we assume the
56 56
 
57 57
 We assign to and retrieve from the ``hand`` attribute in our model just like
58 58
 any other Python class. The trick is to tell Django how to handle saving and
59  
-loading such an object
  59
+loading such an object.
60 60
 
61 61
 In order to use the ``Hand`` class in our models, we **do not** have to change
62 62
 this class at all. This is ideal, because it means you can easily write
@@ -98,7 +98,7 @@ For our ``Hand`` example, we could convert the card data to a string of 104
98 98
 characters by concatenating all the cards together in a pre-determined order.
99 99
 Say, all the *north* cards first, then the *east*, *south* and *west* cards, in
100 100
 that order. So ``Hand`` objects can be saved to text or character columns in
101  
-the database
  101
+the database.
102 102
 
103 103
 What does a field class do?
104 104
 ---------------------------
@@ -233,9 +233,9 @@ sure your field subclass uses ``django.db.models.SubfieldBase`` as its
233 233
 metaclass. This ensures that the ``to_python()`` method, documented below_,
234 234
 will always be called when the attribute is initialised.
235 235
 
236  
-Our ``HandleField`` class now looks like this::
  236
+Our ``HandField`` class now looks like this::
237 237
 
238  
-    class HandleField(models.Field):
  238
+    class HandField(models.Field):
239 239
         __metaclass__ = models.SubfieldBase
240 240
 
241 241
         def __init__(self, *args, **kwargs):
@@ -549,7 +549,7 @@ we can reuse some existing conversion code::
549 549
 Some general advice
550 550
 --------------------
551 551
 
552  
-Writing a custom field can be a tricky process sometime, particularly if you
  552
+Writing a custom field can be a tricky process sometimes, particularly if you
553 553
 are doing complex conversions between your Python types and your database and
554 554
 serialization formats. A couple of tips to make things go more smoothly:
555 555
 

0 notes on commit 84c1e78

Please sign in to comment.
Something went wrong with that request. Please try again.