journals.admin module

class journals.admin.SubmissionTemplateInline(parent_model, admin_site)[source]

Bases: django.contrib.admin.options.TabularInline

model

alias of journals.models.submission_template.SubmissionTemplate

extra = 0
property media
class journals.admin.JournalAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

search_fields = ['name']
list_display = ['__str__', 'doi_string', 'active']
inlines = [<class 'journals.admin.SubmissionTemplateInline'>]
property media
class journals.admin.VolumeAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ['__str__', 'doi_string']
property media
class journals.admin.IssueAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ['__str__', 'doi_string']
search_fields = ['in_journal__name', 'in_volume__in_journal__name', 'doi_label']
property media
class journals.admin.ReferenceInline(parent_model, admin_site)[source]

Bases: django.contrib.admin.options.TabularInline

model

alias of journals.models.publication.Reference

extra = 0
property media
class journals.admin.AuthorsInline(parent_model, admin_site)[source]

Bases: django.contrib.admin.options.TabularInline

model

alias of journals.models.publication.PublicationAuthorsTable

extra = 0
autocomplete_fields = ['profile', 'affiliations']
property media
class journals.admin.OrgPubFractionInline(parent_model, admin_site)[source]

Bases: django.contrib.admin.options.TabularInline

model

alias of journals.models.publication.OrgPubFraction

list_display = ('organization', 'publication', 'fraction')
autocomplete_fields = ['organization']
property media
class journals.admin.PublicationAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

exclude = ['cf_citation', 'cf_author_affiliation_indices_list']
search_fields = ['title', 'author_list', 'doi_label']
list_display = ['title', 'author_list', 'in_issue', 'doi_string', 'publication_date', 'status']
date_hierarchy = 'publication_date'
list_filter = ['in_issue']
inlines = [<class 'journals.admin.AuthorsInline'>, <class 'journals.admin.ReferenceInline'>, <class 'journals.admin.OrgPubFractionInline'>]
autocomplete_fields = ['accepted_submission', 'grants', 'funders_generic', 'topics']
property media
class journals.admin.PublicationProxyMetadata(id, accepted_submission, in_issue, in_journal, paper_nr, status, title, author_list, abstract, abstract_jats, pdf_file, acad_field, approaches, cc_license, pubfractions_confirmed_by_authors, metadata, metadata_xml, metadata_DOAJ, doi_label, BiBTeX_entry, doideposit_needs_updating, citedby, number_of_citations, submission_date, acceptance_date, publication_date, latest_citedby_update, latest_metadata_update, latest_activity, cf_citation, cf_author_affiliation_indices_list)[source]

Bases: journals.models.publication.Publication

search_fields = ['title', 'author_list', 'doi_label']
list_display = ['title', 'author_list', 'in_issue', 'doi_string', 'publication_date', 'status']
exception DoesNotExist

Bases: journals.models.publication.DoesNotExist

exception MultipleObjectsReturned

Bases: journals.models.publication.MultipleObjectsReturned

class journals.admin.PublicationProxyMetadataAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

fields = ['metadata', 'metadata_xml', 'metadata_DOAJ', 'BiBTeX_entry']
search_fields = ['title', 'author_list', 'doi_label']
list_display = ['title', 'author_list', 'in_issue', 'doi_string', 'publication_date', 'status']
property media
class journals.admin.DepositAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ('publication', 'timestamp', 'doi_batch_id', 'deposition_date')
readonly_fields = ('publication', 'doi_batch_id', 'metadata_xml', 'deposition_date')
actions = None
message_user(request, *args)[source]

Send a message to the user. The default implementation posts a message using the django.contrib.messages backend.

Exposes almost the same API as messages.add_message(), but accepts the positional arguments in a different order to maintain backwards compatibility. For convenience, it accepts the level argument as a string rather than the usual level number.

has_add_permission(*args)[source]

Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.

has_delete_permission(*args)[source]

Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.

Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.

property media
class journals.admin.DOAJDepositAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

autocomplete_fields = ['publication']
property media
class journals.admin.PublicationUpdateAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

autocomplete_fields = ['publication']
property media