X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d0a4f124c6b0dca121206c8b4f12826c510906a..aac3fdbb766e03b97da2fa17bc2cd3e8378bdefb:/src/alerts/admin.py?ds=sidebyside 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']