1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #13774 -- Added models.Field.rel_db_type().

This commit is contained in:
Alexander Sosnovskiy
2015-11-13 10:56:10 +03:00
committed by Tim Graham
parent 0e7d59df3e
commit b61eab18f7
5 changed files with 73 additions and 28 deletions

View File

@@ -202,6 +202,10 @@ Models
accessible as a descriptor on the proxied model class and may be referenced in
queryset filtering.
* The new :meth:`Field.rel_db_type() <django.db.models.Field.rel_db_type>`
method returns the database column data type for fields such as ``ForeignKey``
and ``OneToOneField`` that point to another field.
* The :attr:`~django.db.models.Func.arity` class attribute is added to
:class:`~django.db.models.Func`. This attribute can be used to set the number
of arguments the function accepts.