Include page view in the admin interface
This commit is contained in:
parent
8eccec0f1d
commit
97b5332be4
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue