coddingtonbear / django-measurement

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

Shouldn't hardcode MeasurementWidget in MeasurementField.__init__ #86

Open nanmeng opened 5 years ago

nanmeng commented 5 years ago

This prevents MeasurementField from using other widgets (e.g. subclass of MeasurementWidget)

https://github.com/coddingtonbear/django-measurement/blob/85351334087e078c5693aaa458201bee755f65f6/django_measurement/forms.py#L102

coddingtonbear commented 5 years ago

That's an excellent point -- could you file a pull request fixing that, @nanmeng?