# HG changeset patch # User souliane # Date 1435235992 -7200 # Node ID dc8a30f6c3696b2a26ed54d7af8e6dfdb15b9131 # Parent c1b77f07f644b009165d7765cb8e98595fcc678d fixes the display of form results which was ignoring some labels diff -r c1b77f07f644 -r dc8a30f6c369 sat_website/forms.py --- a/sat_website/forms.py Tue Jun 23 18:34:14 2015 +0200 +++ b/sat_website/forms.py Thu Jun 25 14:39:52 2015 +0200 @@ -44,11 +44,11 @@ super(BooleanField, self).__init__(*args, **kwargs) class CharField(forms.CharField): - def __init__(self, label=None, *args, **kwargs): + def __init__(self, *args, **kwargs): try: placeholder = kwargs.pop('placeholder') except KeyError: - placeholder = label + placeholder = kwargs['label'] super(CharField, self).__init__(*args, **kwargs) self.widget.attrs.update({'class': "form-control",