diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2008-11-01 19:20:00 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2008-11-01 19:20:00 +0000 |
| commit | 021b40a84cb0e9f50517ab182e24a6cd469e2a97 (patch) | |
| tree | 803859c8dec6e85254c05debf358ec7526c4f64d /docs | |
| parent | d4f4ab853532c0b541e640eb2e3f5ec17f0b9dd6 (diff) | |
Fixed #9412 -- Corrected a couple of typos in the custom model field doc. Thanks carljm.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-model-fields.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index 2561734c4d..57c805e200 100644 --- a/docs/howto/custom-model-fields.txt +++ b/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 :attr:`~django.db.models.Field.auto_now_add`. @@ -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:: |
