X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d0a4f124c6b0dca121206c8b4f12826c510906a..6b6ff36189e97efb3b463643018806e9ff8e14a8:/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']