1
e11sync/app/signup/admin.py

21 lines
484 B
Python

from django.contrib import admin
from .models import Signup
@admin.register(Signup)
class SignupAdmin(admin.ModelAdmin):
_all_fields = [
"email",
"created_at",
"anonymized_ip",
"user_agent",
"geoip"
]
date_hierarchy = "created_at"
list_display = ["email", "created_at", "user_agent"] + ["place_name"]
list_filter = ["email", "user_agent"]
ordering = ["created_at"]
readonly_fields = _all_fields + ["place_name"]