django-ex/welcome/admin.py
2015-05-29 12:23:59 +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)