def _get_user_form_fields():
    """Gets the fields required for the form from settings, or returns default"""
    from django.conf import settings
    return getattr(settings, 'REGISTRATION_FIELDS', ('username', 'email',
        'password1', 'password2'))
