coddingtonbear / django-measurement

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

Setting Form.initial for MeasurementField #111

Open Onur1991 opened 2 years ago

Onur1991 commented 2 years ago

Hi, I have a question regarding on how to set initial value for fields in the form (generated via django's ModelForm). Conventional way of doing that would be giving Form.initial a dictionary of keys vs initial values. That however does not work for MeasurementFields. So what would be your suggestion? Kind Regards, Onur