11 lines
316 B
Python
11 lines
316 B
Python
|
|
from django.contrib import admin
|
||
|
|
from .models import ClickEvent
|
||
|
|
|
||
|
|
|
||
|
|
@admin.register(ClickEvent)
|
||
|
|
class ClickEventAdmin(admin.ModelAdmin):
|
||
|
|
list_display = ['event_type', 'ip_address', 'created_at']
|
||
|
|
list_filter = ['event_type', 'created_at']
|
||
|
|
search_fields = ['ip_address']
|
||
|
|
readonly_fields = ['created_at']
|