X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d0a4f124c6b0dca121206c8b4f12826c510906a..cb900d10b9d0d42b0b6aa035be45dcbaa2f61af6:/src/alerts/admin.py diff --git a/src/alerts/admin.py b/src/alerts/admin.py index 3eda708d..0872f4da 100644 --- a/src/alerts/admin.py +++ b/src/alerts/admin.py @@ -2,4 +2,7 @@ from django.contrib import admin from .models import Alert -admin.site.register(Alert) +@admin.register(Alert) +class AlertAdmin(admin.ModelAdmin): + list_display = ['book', 'tag'] + list_filter = ['tag']