django-ex/openshift/admin.py

12 lines
225 B
Python
Raw Normal View History

2015-05-24 13:10:47 +02:00
from django.contrib import admin
from .models import PageView
2015-05-24 13:10:47 +02:00
# Register your models here.
class PageViewAdmin(admin.ModelAdmin):
list_display = ['hostname', 'timestamp']
admin.site.register(PageView, PageViewAdmin)