mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Removed references to changes made in 1.2.
Thanks Florian Apolloner for the patch.
This commit is contained in:
parent
6492e8e5e6
commit
c28e700c7e
46 changed files with 22 additions and 474 deletions
|
@ -313,9 +313,6 @@ Custom database types
|
|||
|
||||
.. method:: Field.db_type(self, connection)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``connection`` argument was added to support multiple databases.
|
||||
|
||||
Returns the database column data type for the :class:`~django.db.models.Field`,
|
||||
taking into account the connection object, and the settings associated with it.
|
||||
|
||||
|
@ -452,9 +449,6 @@ Converting Python objects to query values
|
|||
|
||||
.. method:: Field.get_prep_value(self, value)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
This method was factored out of ``get_db_prep_value()``
|
||||
|
||||
This is the reverse of :meth:`.to_python` when working with the
|
||||
database backends (as opposed to serialization). The ``value``
|
||||
parameter is the current value of the model's attribute (a field has
|
||||
|
@ -480,9 +474,6 @@ Converting query values to database values
|
|||
|
||||
.. method:: Field.get_db_prep_value(self, value, connection, prepared=False)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``connection`` and ``prepared`` arguments were added to support multiple databases.
|
||||
|
||||
Some data types (for example, dates) need to be in a specific format
|
||||
before they can be used by a database backend.
|
||||
:meth:`.get_db_prep_value` is the method where those conversions should
|
||||
|
@ -499,9 +490,6 @@ processing.
|
|||
|
||||
.. method:: Field.get_db_prep_save(self, value, connection)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``connection`` argument was added to support multiple databases.
|
||||
|
||||
Same as the above, but called when the Field value must be *saved* to
|
||||
the database. As the default implementation just calls
|
||||
:meth:`.get_db_prep_value`, you shouldn't need to implement this method
|
||||
|
@ -540,9 +528,6 @@ two phase process.
|
|||
|
||||
.. method:: Field.get_prep_lookup(self, lookup_type, value)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
This method was factored out of ``get_db_prep_lookup()``
|
||||
|
||||
:meth:`.get_prep_lookup` performs the first phase of lookup preparation,
|
||||
performing generic data validity checks
|
||||
|
||||
|
@ -591,9 +576,6 @@ accepted lookup types to ``exact`` and ``in``::
|
|||
|
||||
.. method:: Field.get_db_prep_lookup(self, lookup_type, value, connection, prepared=False)
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``connection`` and ``prepared`` arguments were added to support multiple databases.
|
||||
|
||||
Performs any database-specific data conversions required by a lookup.
|
||||
As with :meth:`.get_db_prep_value`, the specific connection that will
|
||||
be used for the query is passed as the ``connection`` parameter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue