Browse files

[1.0.X] Fixed #9412 -- Corrected a couple of typos in the custom mode…

…l field doc. Thanks carljm.

[9314] from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d6a1e2e commit fbf32bd00034bb4a4c6221030eff2cda032f1bfb @kmtracey kmtracey committed Nov 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/howto/custom-model-fields.txt
@@ -437,7 +437,7 @@ for the first time, the ``add`` parameter will be ``True``, otherwise it will be
You only need to override this method if you want to preprocess the value
somehow, just before saving. For example, Django's
-`:class:`~django.db.models.DateTimeField` uses this method to set the attribute
+:class:`~django.db.models.DateTimeField` uses this method to set the attribute
correctly in the case of :attr:`~django.db.models.Field.auto_now` or
@@ -569,7 +569,7 @@ Converting field data for serialization
.. method:: value_to_string(self, obj)
This method is used by the serializers to convert the field into a string for
-output. Calling :meth:``Field._get_val_from_obj(obj)`` is the best way to get the
+output. Calling :meth:`Field._get_val_from_obj(obj)` is the best way to get the
value to serialize. For example, since our ``HandField`` uses strings for its
data storage anyway, we can reuse some existing conversion code::

0 comments on commit fbf32bd

Please sign in to comment.