+from forum.forms.auth import SimpleRegistrationForm
+from forum.forms.general import SetPasswordForm
+
+
+class CreateUserForm(SimpleRegistrationForm, SetPasswordForm):
+ validate_email = forms.BooleanField(required=False, label=_('send validation email'))
+
+ def __init__(self, *args, **kwargs):
+ super(CreateUserForm, self).__init__(*args, **kwargs)
+ self.fields.keyOrder = ['username', 'email', 'validate_email', 'password1', 'password2']
+ self.fields['email'].label = _('email address')