Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
80f0c18d
Commit
80f0c18d
authored
Nov 16, 2011
by
Baptiste Jonglez
Browse files
Add 'state' column to the list of cases (admin interface)
parent
0fce2a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/admin.py
View file @
80f0c18d
...
...
@@ -2,8 +2,8 @@ from django.contrib import admin
from
bt
import
models
class
ViolationAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
)
list_filter
=
(
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'country'
)
list_display
=
(
'state'
,
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
)
list_filter
=
(
'state'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'country'
)
admin
.
site
.
register
(
models
.
Violation
,
ViolationAdmin
)
class
CommentAdmin
(
admin
.
ModelAdmin
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment