how to tell admin.display decorator to order the results by two columns


Please consider the following example:


class Case(models.Model):
    number = models.SmallIntegerField(null=False, blank=False)
    year = models.SmallIntegerField(null=False, blank=False)

class CaseAdmin(admin.ModelAdmin):
    list_display = ['case_number', ...]
    ordering = ['-year', '-number']

    @admin.display(ordering=['-year', '-number'])
    def case_number(self, case):
        return f'{case.number} / {case.year}'

Now how can I specify the order to be by '-year' and '-number' using the admin.display() decorator?

If it can not be done with the admin.display() decorator, is there another way to achieve that?