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

21 lines
484 B
Python
Raw Normal View History

2023-12-14 18:27:56 +02:00
from django.contrib import admin
from .models import Signup
2024-01-15 09:09:39 +02:00
2024-01-12 00:30:58 +02:00
@admin.register(Signup)
class SignupAdmin(admin.ModelAdmin):
2024-01-15 09:09:39 +02:00
_all_fields = [
"email",
"created_at",
"anonymized_ip",
"user_agent",
"geoip"
]
2024-01-12 00:30:58 +02:00
date_hierarchy = "created_at"
2024-01-12 12:12:13 +02:00
list_display = ["email", "created_at", "user_agent"] + ["place_name"]
2024-01-12 00:30:58 +02:00
list_filter = ["email", "user_agent"]
ordering = ["created_at"]
2024-01-12 07:43:04 +02:00
readonly_fields = _all_fields + ["place_name"]