python3-django-pint

Django Quantity Field (Python3 version)
  https://github.com/CarliJoy/django-pint/
  0
  no reviews



A small Django field extension allowing you to store quantities in certain units and perform conversions easily. Uses pint behind the scenes. Also contains a form field class and form widget that allows a user to choose alternative units to input data. The cleaned_data will output the value in the base_units defined for the field, eg: you specify you want to store a value in grams but will allow users to input either grams or ounces.

This package contains the Python 3 version of the library.