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

14 lines
445 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-12 00:30:58 +02:00
@admin.register(Signup)
class SignupAdmin(admin.ModelAdmin):
_all_fields = ["email", "created_at", "anonymized_ip", "user_agent"]
date_hierarchy = "created_at"
2024-01-12 07:43:04 +02:00
list_display = ["email", "created_at", "anonymized_ip", "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"]