Eine Menge Aufräumarbeiten.
* Eine Testsuite um Mahrjong Ranking Berechnungen zu testen * Erste Arbeiten um die Workarounds aus dem "utils" Paket los zu werden. * Vieles am Code umformatiert für PEP8 conformität
This commit is contained in:
@@ -3,15 +3,18 @@ Created on 03.10.2011
|
||||
|
||||
@author: Christian
|
||||
"""
|
||||
import sys
|
||||
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.contrib import auth
|
||||
from django.contrib.sites.models import Site
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from . import models
|
||||
from utils.html5 import forms
|
||||
from utils.massmailer import MassMailer
|
||||
|
||||
from captcha.fields import ReCaptchaField
|
||||
from . import models
|
||||
|
||||
class MembershipForm(forms.ModelForm):
|
||||
error_css_class = 'error'
|
||||
@@ -65,9 +68,11 @@ class RegistrationForm(MembershipForm):
|
||||
requires the password to be entered twice to catch typos.
|
||||
sends an activation request per mail, to validate the eMail.
|
||||
"""
|
||||
password1 = forms.CharField(widget=forms.PasswordInput(), label=_('password'))
|
||||
password2 = forms.CharField(widget=forms.PasswordInput(), label=_('password (again)'))
|
||||
recaptcha = forms.ReCaptchaField()
|
||||
password1 = forms.CharField(
|
||||
widget=forms.PasswordInput(), label=_('password'))
|
||||
password2 = forms.CharField(
|
||||
widget=forms.PasswordInput(), label=_('password (again)'))
|
||||
recaptcha = ReCaptchaField()
|
||||
|
||||
class Meta:
|
||||
model = auth.get_user_model()
|
||||
|
||||
Reference in New Issue
Block a user