1 from django.contrib import admin
5 class VisitsAdmin(admin.ModelAdmin):
6 list_display = ['book', 'date', 'views', 'unique_views']
7 raw_id_fields = ['book']
8 date_hierarchy = 'date'
12 admin.site.register(models.Visits, VisitsAdmin)
13 admin.site.register(models.DayVisits, VisitsAdmin)