I have a dataset with models that show the year. What I need to do is reverse the order. By default, the Django admin interface shows the year by order of ascending number value (e.g. 2021, 2022, etc). What I'm aiming at is for the filter to display 2022, 2021.
models.py
...
def model(models.Model):
year = models.IntegerField()
admin.py
...
class ModelAdmin(admin.ModelAdmin):
list_filter = ("year")
I think this is a very trivial question, but I haven't found the solution yet. Thanks in advance.