django-material icon indicating copy to clipboard operation
django-material copied to clipboard

MultiWidget support

Open saemideluxe opened this issue 7 years ago • 1 comments

Not sure if this is related with #362. I use the MoneyField from django-money in one of my models and the server gives me the following warning (using django-material 1.4.3):

/usr/local/lib/python3.7/dist-packages/material/base.py:216: UserWarning: Unknown field and widget <class 'djmoney.forms.fields.MoneyField'> <class 'djmoney.forms.widgets.MoneyWidget'>

The warning is generated because a template cannot be found. django-money does not provide any templates but relies on the default django MultiWidget. As far as I could see django-material does not implement a general MultiWidget. Is that correct and is there a possibility this will be added in the future?

saemideluxe avatar Dec 28 '18 20:12 saemideluxe

Generally, it's hard to provide a nice and generic multi-widget template for render with MaterializeCSS.

Currently you have to create your own material/fields/djmoney_moneywidget.html

kmmbvnr avatar Feb 07 '19 07:02 kmmbvnr