This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Include page view in the admin interface
pull/2/merge
Rodolfo Carvalho
10 years ago
parent
8eccec0f1d
commit
97b5332be4
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
openshift/admin.py
+ 8
- 0
openshift/admin.py
View File
@ -1,3 +1,11 @@
from
django.contrib
import
admin
from
.models
import
PageView
# Register your models here.
class
PageViewAdmin
(
admin
.
ModelAdmin
)
:
list_display
=
[
'
hostname
'
,
'
timestamp
'
]
admin
.
site
.
register
(
PageView
,
PageViewAdmin
)
Write
Preview
Loading…
Cancel
Save