Fixes and experiments.
[wolnelektury.git] / src / stats / admin.py
1 from django.contrib import admin
2 from . import models
3
4
5 class VisitsAdmin(admin.ModelAdmin):
6     list_display = ['book', 'date', 'views', 'unique_views']
7     raw_id_fields = ['book']
8     date_hierarchy = 'date'
9
10
11
12 admin.site.register(models.Visits, VisitsAdmin)
13 admin.site.register(models.DayVisits, VisitsAdmin)