Merge pull request #743 from eberkund/master

Fix incorrect label tag
This commit is contained in:
Antoine Nguyen
2015-06-21 20:54:23 +02:00
+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))