scipost.admin module¶
-
class
scipost.admin.
TOTPDeviceAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
search_fields
= ['user']¶
-
autocomplete_fields
= ['user']¶
-
property
media
¶
-
Bases:
django.contrib.admin.options.ModelAdmin
-
class
scipost.admin.
ContributorAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
search_fields
= ['user__first_name', 'user__last_name', 'user__email', 'profile__orcid_id']¶
-
autocomplete_fields
= ['profile', 'user', 'vetted_by', 'duplicate_of']¶
-
property
media
¶
-
-
class
scipost.admin.
ContributorInline
(parent_model, admin_site)[source]¶ Bases:
django.contrib.admin.options.StackedInline
-
model
¶ alias of
scipost.models.Contributor
-
extra
= 0¶
-
min_num
= 0¶
-
autocomplete_fields
= ['profile', 'vetted_by', 'duplicate_of']¶
-
property
media
¶
-
-
class
scipost.admin.
TOTPDeviceInline
(parent_model, admin_site)[source]¶ Bases:
django.contrib.admin.options.StackedInline
-
model
¶ alias of
scipost.models.TOTPDevice
-
extra
= 0¶
-
min_num
= 0¶
-
property
media
¶
-
-
class
scipost.admin.
UserAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.auth.admin.UserAdmin
-
inlines
= [<class 'scipost.admin.ContributorInline'>, <class 'scipost.admin.TOTPDeviceInline'>, <class 'organizations.admin.ContactInline'>, <class 'production.admin.ProductionUserInline'>]¶
-
list_display
= ['username', 'email', 'first_name', 'last_name', 'is_active', 'is_staff', 'is_duplicate']¶
-
search_fields
= ['username', 'last_name', 'email']¶
-
property
media
¶
-
-
class
scipost.admin.
RemarkTypeListFilter
(request, params, model, model_admin)[source]¶ Bases:
django.contrib.admin.filters.SimpleListFilter
-
title
= 'Remark Type'¶
-
parameter_name
= 'type'¶
-
-
class
scipost.admin.
RemarkAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
search_fields
= ['contributor', 'remark']¶
-
list_display
= [<function remark_text>, 'contributor', 'date', <function get_remark_type>]¶
-
date_hierarchy
= 'date'¶
-
list_filter
= [<class 'scipost.admin.RemarkTypeListFilter'>]¶
-
autocomplete_fields
= ['contributor', 'submission', 'recommendation']¶
-
property
media
¶
-