Browse files

disabled captcha on debug so that I can add lots of test users

  • Loading branch information...
1 parent 421dc52 commit 5a525718c304e669a3280cff6a076f2d902f3a9e @wanderer wanderer committed with mjbecze@gmail.com Aug 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 occupywallst/forms.py
View
4 occupywallst/forms.py
@@ -9,6 +9,7 @@
from django import forms
from django.forms.models import modelformset_factory
+from django.conf import settings
from occupywallst import models as db
from occupywallst.fields import ReCaptchaField
@@ -84,7 +85,8 @@ class SignupForm(ProfileForm):
password = forms.CharField(label="Password", widget=forms.PasswordInput,
min_length=6, max_length=128,
help_text="At least 6 characters")
- captcha = ReCaptchaField()
+ if not settings.DEBUG:
+ captcha = ReCaptchaField()
def __init__(self, *args, **kwargs):
super(SignupForm, self).__init__(None, *args, **kwargs)

0 comments on commit 5a52571

Please sign in to comment.