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
We want to be able to do "{{ form }} or "{{ form.as_div }}" in our templates. as_div in particular uses the template "django/forms/div.html".
We can override any default django form specific template via argus.htmx if we add "django.forms" to argus.htmx.appconfig._app_settings (after "argus.htmx"), and set FORM_RENDERER = 'django.forms.renderers.TemplatesSetting' in the same place.
Just for as_div the easiest/most robustly way is probably with a form mixin with either our own "as_div", or reuse "as_div" and use our own template by setting "template_name_div" on the form.
We want to be able to do "{{ form }} or "{{ form.as_div }}" in our templates.
as_div
in particular uses the template "django/forms/div.html".We can override any default django form specific template via argus.htmx if we add "django.forms" to
argus.htmx.appconfig._app_settings
(after "argus.htmx"), and setFORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
in the same place.Just for
as_div
the easiest/most robustly way is probably with a form mixin with either our own "as_div", or reuse "as_div" and use our own template by setting "template_name_div" on the form.Discovered during #1110
The text was updated successfully, but these errors were encountered: