[Django]-How to make form labels and fields display on the same line in django-crispy-form

8👍

If you are using the default template pack (Bootstrap) you have to assign the class form-horizontal to your form tag.

Float left, right-aligned labels on same line as controls

Either do it in your template or use your form.helper as demonstrated in the example gist for crispy-forms:

helper.form_class = 'form-horizontal'
👤arie

Leave a comment