1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Release notes and other minor docs changes

This commit is contained in:
Anssi Kääriäinen
2014-01-14 18:59:36 +02:00
parent 11501c29c9
commit eb1c8ce164
6 changed files with 54 additions and 4 deletions

View File

@@ -662,6 +662,12 @@ 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 </ref/models/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
list when you were expecting an object, for example) or a ``TypeError`` if