1
e11sync/app/signup/admin.py

22 lines
504 B
Python
Raw Permalink 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",
2024-02-27 18:34:57 +02:00
"geoip",
"referrer"
2024-01-15 09:09:39 +02:00
]
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"]