django-bootstrap-form
django-bootstrap-form copied to clipboard
Use field.id_for_label instead of field.auto_id
This fixes a bug when specifying a custom id for a field and rendering
it with the |bootstrap
filter.
When using field.auto_id
in the label's for
attribute, this is
always set to the default value instead of the custom id
.
Also fix a typo in the tests: file_fied
-> file_field
Coverage remained the same at 85.98% when pulling d2193303d84131bff91ceab71e2be506c054d7ca on nikolas:use-id-for-label into 629d82d26ba47ac342f6e202c9d929109656f6cf on tzangms:master.
Coverage remained the same at 85.98% when pulling d2193303d84131bff91ceab71e2be506c054d7ca on nikolas:use-id-for-label into 629d82d26ba47ac342f6e202c9d929109656f6cf on tzangms:master.