1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #35117 -- Added support for the hectare unit in Area.

This commit is contained in:
Alexis Athlani
2024-01-15 23:16:12 +01:00
committed by Mariusz Felisiak
parent 6debeac9e7
commit c7e986fc9f
4 changed files with 33 additions and 2 deletions

View File

@@ -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
===============