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
class scipost.admin.UnavailabilityPeriodAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

autocomplete_fields = ['contributor']
property media
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']
is_duplicate(obj)[source]
property media
class scipost.admin.RemarkTypeListFilter(request, params, model, model_admin)[source]

Bases: django.contrib.admin.filters.SimpleListFilter

title = 'Remark Type'
parameter_name = 'type'
lookups(request, model_admin)[source]

Returns a list of tuples to define the filter values in the Admin UI.

scipost.admin.remark_text(obj)[source]
scipost.admin.get_remark_type(remark)[source]
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
class scipost.admin.AuthorshipClaimAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

autocomplete_fields = ['claimant', 'submission', 'commentary', 'thesislink', 'vetted_by']
property media
class scipost.admin.PrecookedEmailAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

property media
search_fields = ['email_subject', 'email_text', 'emailed_to']