This could be made much simpler by adding `attrs['for'] = id_for_label` and remove the duplication between the templates. I don't know if there's any particular reason not to do that.