mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #35117 -- Added support for the hectare unit in Area.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6debeac9e7
commit
c7e986fc9f
@@ -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
|
||||
===============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user