Include page view in the admin interface

This commit is contained in:
Rodolfo Carvalho 2015-05-25 22:32:27 +02:00
parent 8eccec0f1d
commit 97b5332be4

View file

@ -1,3 +1,11 @@
from django.contrib import admin from django.contrib import admin
from .models import PageView
# Register your models here. # Register your models here.
class PageViewAdmin(admin.ModelAdmin):
list_display = ['hostname', 'timestamp']
admin.site.register(PageView, PageViewAdmin)