mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Support degree symbols for temperature units (#6498)
This commit is contained in:
parent
21f209f7cc
commit
43457d4136
@ -45,6 +45,11 @@ def reload_unit_registry():
|
|||||||
reg.define('hundred = 100')
|
reg.define('hundred = 100')
|
||||||
reg.define('thousand = 1000')
|
reg.define('thousand = 1000')
|
||||||
|
|
||||||
|
# Temperature units
|
||||||
|
reg.define('degreeC = °C = degC = celsius = Celsius')
|
||||||
|
reg.define('degreeF = °F = degF = fahrenheit = Fahrenheit')
|
||||||
|
reg.define('degreeK = °K = degK = kelvin = Kelvin')
|
||||||
|
|
||||||
# Allow for custom units to be defined in the database
|
# Allow for custom units to be defined in the database
|
||||||
try:
|
try:
|
||||||
from common.models import CustomUnit
|
from common.models import CustomUnit
|
||||||
|
Loading…
Reference in New Issue
Block a user