Browse Source

[enh] Add comment

ljf 6 years ago
parent
commit
49c560d293
1 changed files with 3 additions and 2 deletions
  1. 3 2
      coin/members/forms.py

+ 3 - 2
coin/members/forms.py

@@ -15,7 +15,7 @@ class MemberRegistrationForm(RegistrationForm):
     # Protect against robot
     trap = forms.CharField(required=False, label='Trap',
             widget=forms.TextInput(attrs={'style' : 'display:none'}),
-        help_text="Si vous êtes humain ne ignorez ce champ")
+        help_text="Si vous êtes humain ignorez ce champ")
 
     def __init__(self, *args, **kwargs):
         super(MemberRegistrationForm, self).__init__(*args, **kwargs)
@@ -33,7 +33,8 @@ class MemberRegistrationForm(RegistrationForm):
 
     def as_p(self):
         """"
-        Hide captcha
+        We rewrite the as_p method to apply a style on the <p> tag related to
+        trap field. Indeed, it seeems there is no cleaner way to do it.
         """
         def css_classes(self, extra_classes=None):
             return 'captcha'