diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-26 15:39:52 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-01 21:02:40 -0500 |
| commit | c79faae761659d51d58782dbd2b8058fb4668cfa (patch) | |
| tree | a83649a302c53dd2d0ce9e0f50c4017b8b5da979 /docs/howto/custom-model-fields.txt | |
| parent | 0e6091249295b0e06aff2b1b4411819f94a1c529 (diff) | |
Removed versionadded/changed notes for 1.7.
Diffstat (limited to 'docs/howto/custom-model-fields.txt')
| -rw-r--r-- | docs/howto/custom-model-fields.txt | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index f35cc41d3d..5c41d92bb6 100644 --- a/docs/howto/custom-model-fields.txt +++ b/docs/howto/custom-model-fields.txt @@ -230,12 +230,6 @@ meaning they do for normal Django fields. See the :doc:`field documentation Field deconstruction -------------------- -.. versionadded:: 1.7 - - ``deconstruct()`` is part of the migrations framework in Django 1.7 and - above. If you have custom fields from previous versions they will - need this method added before you can use them with migrations. - The counterpoint to writing your ``__init__()`` method is writing the ``deconstruct()`` method. This method tells Django how to take an instance of your new field and reduce it to a serialized form - in particular, what @@ -590,11 +584,8 @@ valid Django filter lookups: ``exact``, ``iexact``, ``contains``, ``icontains``, ``endswith``, ``iendswith``, ``range``, ``year``, ``month``, ``day``, ``isnull``, ``search``, ``regex``, and ``iregex``. -.. versionadded:: 1.7 - - If you are using :doc:`Custom lookups </howto/custom-lookups>` the - ``lookup_type`` can be any ``lookup_name`` used by the project's custom - lookups. +If you are using :doc:`custom lookups </howto/custom-lookups>`, the +``lookup_type`` can be any ``lookup_name`` used by the project's custom lookups. Your method must be prepared to handle all of these ``lookup_type`` values and should raise either a ``ValueError`` if the ``value`` is of the wrong sort (a |
