Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ Le jeudi, juillet 23, 2020 6:53 PM, Adam Johnson <m...@adamj.eu> a écrit : >> do you think it is better to create a widget class per custom element >> instead of just switching the template_name variable or just setting the tag >> name like any attr ? > > I'd imagine so. This way you can make required attributes their own arguments > to __init__, and any other customization you might need. It will also make > the form class a little clearer So, you'd be against custom elements that just work after changing the tag ? I really thought we should strive for that, and leverage custom elements to remove boilerplate code rather than adding more. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/eWxmxo38Vf6jlKTPTeY5DIotKpeslP2lbGycb9hvbhmrI5i6iqlWTC_slmJeEvKZRhVLbJdhKQvqYRHrLv8Vpx6ROCm7V7L8EfiN_icXfX4%3D%40protonmail.com.