django-ex/openshift/admin.py
2015-05-25 22:32:27 +02:00

11 lines
225 B
Python

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)