Fix incorrect label tag

The value of the for attribute must match the id of the input tag
This commit is contained in:
Erik Berkun-Drevnig
2015-06-23 11:58:58 +02:00
committed by Stéphane Klein
parent 1d77bf7a66
commit be1a84a9de
+1 -1
View File
@@ -404,7 +404,7 @@ class DomainNameField(CharField):
class CustomRadioInput(RadioInput):
def __unicode__(self):
if 'id' in self.attrs:
label_for = ' for="%s_%s"' % (self.attrs['id'], self.index)
label_for = ' for="%s"' % self.attrs['id']
else:
label_for = ''
choice_label = conditional_escape(force_unicode(self.choice_label))