Skip to content
GitLab
Menu
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
445775d7
Commit
445775d7
authored
Mar 08, 2016
by
Okhin
Browse files
Adding the old column to the admin interface
parent
868f805e
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/admin.py
View file @
445775d7
...
...
@@ -6,8 +6,8 @@ class CommentInline(admin.TabularInline):
max_num
=
1
class
ViolationAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'state'
,
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
)
list_filter
=
(
'state'
,
'operator_ref'
,
'contract'
,
'resource_name'
,
'media'
,
'country'
)
list_display
=
(
'state'
,
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
,
'old'
)
list_filter
=
(
'state'
,
'operator_ref'
,
'contract'
,
'resource_name'
,
'media'
,
'country'
,
'old'
)
inlines
=
[
CommentInline
,
]
admin
.
site
.
register
(
models
.
Violation
,
ViolationAdmin
)
...
...
@@ -33,4 +33,4 @@ class OperatorAdmin(admin.ModelAdmin):
list_display
=
(
"__unicode__"
,
"reported_violations"
)
search_fields
=
(
'name'
,
)
pass
admin
.
site
.
register
(
models
.
Operator
,
OperatorAdmin
)
\ No newline at end of file
admin
.
site
.
register
(
models
.
Operator
,
OperatorAdmin
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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