django-bootstrap-form icon indicating copy to clipboard operation
django-bootstrap-form copied to clipboard

Use field.id_for_label instead of field.auto_id

Open nikolas opened this issue 9 years ago • 3 comments

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

nikolas avatar Mar 04 '15 18:03 nikolas

Coverage Status

Coverage remained the same at 85.98% when pulling d2193303d84131bff91ceab71e2be506c054d7ca on nikolas:use-id-for-label into 629d82d26ba47ac342f6e202c9d929109656f6cf on tzangms:master.

coveralls avatar Apr 01 '15 15:04 coveralls

Coverage Status

Coverage remained the same at 85.98% when pulling d2193303d84131bff91ceab71e2be506c054d7ca on nikolas:use-id-for-label into 629d82d26ba47ac342f6e202c9d929109656f6cf on tzangms:master.

coveralls avatar Apr 01 '15 15:04 coveralls

Coverage Status

Coverage remained the same at 85.98% when pulling d2193303d84131bff91ceab71e2be506c054d7ca on nikolas:use-id-for-label into 629d82d26ba47ac342f6e202c9d929109656f6cf on tzangms:master.

coveralls avatar Apr 01 '15 15:04 coveralls