Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

MultiWidget support #442

Open
saemideluxe opened this issue Dec 28, 2018 · 1 comment
Open

MultiWidget support #442

saemideluxe opened this issue Dec 28, 2018 · 1 comment

Comments

@saemideluxe
Copy link

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?

@kmmbvnr kmmbvnr changed the title django-money not working (multiwiget issue) MultiWidget support Feb 7, 2019
@kmmbvnr
Copy link
Collaborator

kmmbvnr commented Feb 7, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants