14 lines
449 B
Python
14 lines
449 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_code"]
|
|
list_filter = ["email", "user_agent"]
|
|
ordering = ["created_at"]
|
|
readonly_fields = _all_fields + ["country_name"]
|