e11sync

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 95e5e92c4166cd787c6356d762fef5cfd1e9b67d (tree)
parent a99ac0d9dbdebad32a1f85e5cde6b774c3cd72dd
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Fri, 12 Jan 2024 00:30:58 +0200

improve admin site

Diffstat:
Mapp/signup/admin.py | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/app/signup/admin.py b/app/signup/admin.py @@ -2,4 +2,12 @@ from django.contrib import admin from .models import Signup -admin.site.register(Signup) +@admin.register(Signup) +class SignupAdmin(admin.ModelAdmin): + _all_fields = ["email", "created_at", "anonymized_ip", "user_agent"] + + date_hierarchy = "created_at" + list_display = ["email", "created_at", "anonymized_ip", "user_agent"] + list_filter = ["email", "user_agent"] + ordering = ["created_at"] + readonly_fields = _all_fields