~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/forms.py

  • Committer: Holger Rapp
  • Date: 2009-03-03 13:46:05 UTC
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: sirver@h566336-20090303134605-71ei2lvahnsoamgm
Added recaptcha on registration site

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python -tt
 
2
# encoding: utf-8
 
3
 
 
4
from registration.forms import RegistrationForm
 
5
from wlrecaptcha.forms import RecaptchaForm, RecaptchaFieldPlaceholder, RecaptchaWidget
 
6
 
 
7
class RegistrationWithCaptchaForm(RegistrationForm,RecaptchaForm):
 
8
    captcha = RecaptchaFieldPlaceholder(widget=RecaptchaWidget(theme="white"),
 
9
                                label="Are you human?")
 
10
 
 
11