diff --git a/envelope/admin.py b/envelope/admin.py new file mode 100644 index 0000000..3fec34f --- /dev/null +++ b/envelope/admin.py @@ -0,0 +1,23 @@ +from django.contrib import admin +from envelope.models import Connection + + +@admin.register(Connection) +class ConnectionAdmin(admin.ModelAdmin): + search_fields = ("user__first_name", "user__last_name") + autocomplete_fields = ("user",) + list_filter = [ + "online", + "awol", + "online_at", + "offline_at", + "last_action", + ] + list_display = [ + "user", + "online", + "awol", + "online_at", + "offline_at", + "last_action", + ]