Show BooleanField checkbox before label

前端 未结 1 869
野趣味
野趣味 2021-01-25 05:09

I\'m in the process of trying to minimize the amount of code I need to use to render a form with bootstrap styling with the hope of rendering with just {{ form }} b

相关标签:
1条回答
  • 2021-01-25 05:48

    It turns out this is much more intrinsic to do than it would appear to be and involves providing a form field mixin as well as a custom widget.

    All too much work for me to maintain.

    However!

    django-angular has managed to achieve this with their own CheckboxInput and associated BooleanFieldMixin, since this is something I am planning on using, it has resolved my issue.

    0 讨论(0)
提交回复
热议问题