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
jaster
Respect My Net
Commits
0269482a
Commit
0269482a
authored
Apr 23, 2017
by
okhin
🚴
Browse files
Merge branch '53-output-the-timedate-stamp-for-violations' into 'master'
fixed in admin.py Closes #53 See merge request !51
parents
8084285d
d4eadd8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/admin.py
View file @
0269482a
...
...
@@ -6,7 +6,7 @@ class CommentInline(admin.TabularInline):
max_num
=
1
class
ViolationAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'state'
,
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
,
'old'
)
list_display
=
(
'state'
,
'country'
,
'operator'
,
'contract'
,
'resource_name'
,
'media'
,
'activationid'
,
'old'
,
'creation_date'
)
list_filter
=
(
'state'
,
'operator_ref'
,
'contract'
,
'resource_name'
,
'media'
,
'country'
,
'old'
)
inlines
=
[
CommentInline
,
]
admin
.
site
.
register
(
models
.
Violation
,
ViolationAdmin
)
...
...
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