You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't need a custom template
You can set Widget.type to change the tag.
You can set the attributes via the build_attr method.
For me, personally using a custom template seemed easier to use, since i dont have control over the textarea element that django provides, i think its better to use something truly custom.
Also, i found passing params via build_attr a bit cumbersome.
You could consider extending a native HTML input. That make's FormData collection easy, but rendering much harder. So it's hard to say which solution is better.
Incorporate ideas from :
django-hstore-widget
PokaInc/django-admin-hstore-widget#27 (comment)The text was updated successfully, but these errors were encountered: