swh.web.admin.urls module#

class swh.web.admin.urls.SwhAdminAuthenticationForm(request=None, *args, **kwargs)[source]#

Bases: AdminAuthenticationForm

The ‘request’ parameter is set for custom auth use by subclasses. The form data comes in via the standard ‘data’ kwarg.

confirm_login_allowed(user)[source]#

Controls whether the given User may log in. This is a policy setting, independent of end-user authentication. This default behavior is to allow login by active users, and reject login by inactive users.

If the given user cannot log in, this method should raise a ValidationError.

If the given user may log in, this method should return None.

base_fields = {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}#
declared_fields = {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}#
property media#

Return all media required to render the widgets on this form.