1
Fork 0
e11sync/app/signup/admin.py

14 lines
426 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"]
date_hierarchy = "created_at"
list_display = ["email", "created_at", "anonymized_ip", "user_agent"]# + ["country"]
list_filter = ["email", "user_agent"]
ordering = ["created_at"]
readonly_fields = _all_fields