-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadmin_utils.py
33 lines (24 loc) · 1.1 KB
/
admin_utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
__copyright__ = "Copyright 2022 Birkbeck, University of London"
__author__ = "Martin Paul Eve, Andy Byers, Mauro Sanchez and Joseph Muller"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck, University of London"
from django.contrib import admin
from plugins.typesetting import models as typesetting_models
class TypesettingClaimInline(admin.TabularInline):
model = typesetting_models.TypesettingClaim
extra = 0
raw_id_fields = ('article', 'editor')
class TypesettingAssignmentInline(admin.TabularInline):
model = typesetting_models.TypesettingAssignment
extra = 0
fields = ('round', 'manager', 'typesetter', 'assigned', 'due', 'task')
raw_id_fields = ('round', 'manager', 'typesetter')
class TypesettingCorrectionInline(admin.TabularInline):
model = typesetting_models.TypesettingCorrection
extra = 0
raw_id_fields = ('task', 'galley')
class GalleyProofingInline(admin.TabularInline):
model = typesetting_models.GalleyProofing
extra = 0
fields = ('round', 'manager', 'proofreader', 'assigned', 'due', 'task')
raw_id_fields = ('round', 'manager', 'proofreader')