coddingtonbear / django-measurement

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

fix #107 #109

Open limonrojo-nm opened 2 years ago

limonrojo-nm commented 2 years ago

Adds MeasurementSerializerField to be used with Django Rest Framework serializers. Please check setup.cfg in order to set DRF as a dependency. I'm not sure this is the correct use/syntax of this .cfg file Thanks

browser-bug commented 1 year ago

@coddingtonbear could we have this merged and deployed on PiPY? Would be awesome :)

nnmer commented 7 months ago

@coddingtonbear +1 currently need to copy/past, but better to have it unified and included into the package

nnmer commented 7 months ago

Adds MeasurementSerializerField to be used with Django Rest Framework serializers. Please check setup.cfg in order to set DRF as a dependency. I'm not sure this is the correct use/syntax of this .cfg file Thanks

@limonrojo-nm measurement_class seems to be deprecated, perhaps need to change it to measurement https://github.com/coddingtonbear/django-measurement/blob/b5b905fe4dd094679052b23eeea360c050e73c07/django_measurement/models.py#L41