SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b4aa3ab1 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Tweak RefereeInvitation admin and ordering

parent c4704a30
No related branches found
No related tags found
Loading
......@@ -194,7 +194,7 @@ class RefereeInvitationAdmin(admin.ModelAdmin):
'referee__user__last_name',
'first_name', 'last_name', 'email_address'
]
list_display = ('__str__', 'accepted', )
list_display = ('__str__', 'accepted', 'fulfilled', 'cancelled')
list_filter = ('accepted', 'fulfilled', 'cancelled',)
date_hierarchy = 'date_invited'
autocomplete_fields = [
......
# Generated by Django 3.2.5 on 2022-01-17 07:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('submissions', '0112_alter_submissionevent_event'),
]
operations = [
migrations.AlterModelOptions(
name='refereeinvitation',
options={'ordering': ['-date_invited']},
),
]
......@@ -72,7 +72,7 @@ class RefereeInvitation(SubmissionRelatedObjectMixin, models.Model):
objects = RefereeInvitationQuerySet.as_manager()
class Meta:
ordering = ['cancelled', 'date_invited']
ordering = ['-date_invited',]
def __str__(self):
"""Summarize the RefereeInvitation's basic information."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment