diff options
| author | Alexis Athlani <alexis.athlani@gmail.com> | 2024-01-15 23:16:12 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-01-16 20:31:46 +0100 |
| commit | c7e986fc9f4848bd757d4b9b70a40586d2cee9fb (patch) | |
| tree | 94e63c995ee4b91f21a1aa6ebc96a704c93b89a1 /docs | |
| parent | 6debeac9e7538e0e32883dc36abe6fc40a35c874 (diff) | |
Fixed #35117 -- Added support for the hectare unit in Area.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/gis/measure.txt | 13 | ||||
| -rw-r--r-- | docs/releases/5.1.txt | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/contrib/gis/measure.txt b/docs/ref/contrib/gis/measure.txt index ad02db87fa..cee4211220 100644 --- a/docs/ref/contrib/gis/measure.txt +++ b/docs/ref/contrib/gis/measure.txt @@ -116,6 +116,19 @@ Unit Attribute Full name or alias(es) For example, ``Area(sq_m=2)`` creates an :class:`Area` object representing two square meters. +In addition to unit with the ``sq_`` prefix, the following units are also +supported on :class:`Area`: + +================================= ======================================== +Unit Attribute Full name or alias(es) +================================= ======================================== +``ha`` Hectare +================================= ======================================== + +.. versionchanged:: 5.1 + + Support for the ``ha`` unit was added. + Measurement API =============== diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 30317eaa19..1f7d26d7b8 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -70,6 +70,8 @@ Minor features ``metro_code`` and ``region_code``, but the previous keys are also retained for backward compatibility. +* :class:`~django.contrib.gis.measure.Area` now supports the ``ha`` unit. + :mod:`django.contrib.messages` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
