From 97b5332be40fd1b1dc92a94f7a0aa1bc6614e6a3 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 25 May 2015 22:32:27 +0200 Subject: [PATCH] Include page view in the admin interface --- openshift/admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openshift/admin.py b/openshift/admin.py index 8c38f3f..5320025 100644 --- a/openshift/admin.py +++ b/openshift/admin.py @@ -1,3 +1,11 @@ from django.contrib import admin +from .models import PageView + # Register your models here. + + +class PageViewAdmin(admin.ModelAdmin): + list_display = ['hostname', 'timestamp'] + +admin.site.register(PageView, PageViewAdmin)