fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
11dfe7e89656551fb2835938f8b09274e8fcca76
[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)