summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/measure.txt13
-rw-r--r--docs/releases/5.1.txt2
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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~