coddingtonbear / django-measurement

Easily store, retrieve, and convert measurements of weight, volume, distance, area and more.
MIT License
145 stars 32 forks source link

Enable use of measurement field in django admin #115

Closed AlejandroJaez closed 1 year ago

AlejandroJaez commented 1 year ago

with this lines, we check if the value send from django admin is string, if it is, convert the value to an instance of measurement without affect anything else.