diff options
| author | anna <annarschneider@gmail.com> | 2016-04-03 12:39:18 +0200 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2016-04-03 16:32:30 +0200 |
| commit | b28c60529bfa94702a50990fc2d40faa837fca9c (patch) | |
| tree | 33928b3fa7f3622ea2bccf032d3cda9ac9da7573 /docs | |
| parent | 319b7112d8aa4a5fc38e9a8af2137d0074011439 (diff) | |
Fixed #26101 -- Allowed introspection of base_field.model in RangeField
Used the same test and fix as in #25867.
This required initializing base_field in RangeField.__init__,
not when setting the attribute.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 2 | ||||
| -rw-r--r-- | docs/releases/1.10.txt | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 0c89a22749..b7938dcb2f 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -845,7 +845,7 @@ types. .. attribute:: base_field - The model field to use. + The model field class to use. .. attribute:: range_type diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index c8696f8d85..1ad08f10c2 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -705,6 +705,12 @@ Miscellaneous * :func:`django.views.i18n.set_language` may now return a 204 status code for AJAX requests. +* The ``base_field`` attribute of + :class:`~django.contrib.postgres.fields.RangeField` is now a type of field, + not an instance of a field. If you have created a custom subclass of + :class:`~django.contrib.postgres.fields.RangeField`, you should change the + ``base_field`` attribute. + .. _deprecated-features-1.10: Features deprecated in 1.10 |
