journals.mixins module

class journals.mixins.PublicationMixin[source]

Bases: object

model

alias of journals.models.publication.Publication

slug_field = 'doi_label'
slug_url_kwarg = 'doi_label'
class journals.mixins.ProdSupervisorPublicationPermissionMixin[source]

Bases: scipost.mixins.PermissionsMixin

This will give permission to Production Supervisors if Publication is in_draft. If Publication is not in draft, it will only give permission to administrators.

permission_required = 'scipost.can_draft_publication'
has_permission()[source]

Override this method to customize the way permissions are checked.