reviewboard.admin.admin_sites¶
Django AdminSite customization for Review Board.
- class AuthenticationForm(request=None, *args, **kwargs)[source]¶
Bases:
ReviewBoardAuthenticationFormMixin
,AdminAuthenticationForm
Authentication form for the administration UI.
This builds upon the main admin authentication form (which handles permission checks when verifying a username) by incorporating the capabilities of the main Review Board administration form, allowing e-mail addresses as usernames and rate limiting login attempts.
New in version 4.0.
- declared_fields = {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}¶
- class AdminSite(*args, **kwargs)[source]¶
Bases:
AdminSite
Main administration site for Review Board.
This provides customization of the administration UI, while maintaining Model/Admin registration compatibility with the standard Django administration UI.
Technically, this is focused on the Database section of the administration UI, though it’s planned to be used to consolidate more of the UI in the future.
All code should reference
admin_site
where possible, rather thandjango.contrib.admin.site
.New in version 4.0.
- login_form[source]¶
alias of
AuthenticationForm