<commit_before>__copyright__ = "Copyright 2017 Birkbeck, University of London"
__author__ = "<NAME> & <NAME>"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck Centre for Technology and Publishing"

from django.contrib import admin

from journal import models


class IssueAdmin(admin.ModelAdmin):
    """Displays Setting objects in the Django admin interface."""
    list_display = ('volume', 'issue', 'issue_title', 'journal', 'issue_type')
    list_filter = ('journal', 'issue_type')
    search_fields = ('issue_title',)


class JournalAdmin(admin.ModelAdmin):
    """Displays Setting objects in the Django admin interface."""
    list_display = ('name', 'code', 'domain', 'is_remote', 'hide_from_press')
    list_filter = ('is_remote', 'hide_from_press')


admin_list = [
    (models.Issue, IssueAdmin),
    (models.Journal, JournalAdmin),
    (models.PresetPublicationCheckItem,),
    (models.PrePublicationChecklistItem,),
    (models.FixedPubCheckItems,),
    (models.ArticleOrdering,),
    (models.SectionOrdering,)
]

[admin.site.register(*t) for t in admin_list]<commit_msg>Deploy updates to journal admin.<commit_after>__copyright__ = "Copyright 2017 Birkbeck, University of London"
__author__ = "<NAME> & <NAME>"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck Centre for Technology and Publishing"

from django.contrib import admin

from journal import models


class IssueAdmin(admin.ModelAdmin):
    """Displays Setting objects in the Django admin interface."""
    list_display = ('volume', 'issue', 'issue_title', 'journal', 'issue_type')
    list_filter = ('journal', 'issue_type')
    search_fields = ('issue_title',)


class JournalAdmin(admin.ModelAdmin):
    """Displays Setting objects in the Django admin interface."""
    list_display = ('name', 'code', 'domain', 'is_remote', 'hide_from_press')
    list_filter = ('is_remote', 'hide_from_press')


class ArticleOrderingAdmin(admin.ModelAdmin):
    list_display = ('article', 'issue', 'section', 'order')
    list_filter = ('issue', 'section')
    search_fields = ('article__title',)


admin_list = [
    (models.Issue, IssueAdmin),
    (models.Journal, JournalAdmin),
    (models.PresetPublicationCheckItem,),
    (models.PrePublicationChecklistItem,),
    (models.FixedPubCheckItems,),
    (models.ArticleOrdering, ArticleOrderingAdmin),
    (models.SectionOrdering,)
]

[admin.site.register(*t) for t in admin_list]
{'fraction_non_alphanumeric': 0.13391739674593242, 'fraction_numerical': 0.004171881518564873, 'mean_word_length': 5.228571428571429, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6018717', 'n_tokens_mistral': 741, 'n_tokens_neox': 709, 'n_words': 182}