Skip to content

Commit f808965

Browse files
moacirmodarenzon
authored andcommitted
creating admin for PageView model
1 parent 8070564 commit f808965

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎pythonpro/analytics/admin.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
from django.contrib import admin
22

3-
# Register your models here.
3+
from pythonpro.analytics.models import PageView
4+
5+
6+
@admin.register(PageView)
7+
class PageViewAdmin(admin.ModelAdmin):
8+
list_display = ['id', 'session', 'created']

0 commit comments

Comments
 (0)