Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
c10f6dee
Commit
c10f6dee
authored
Oct 31, 2016
by
Alan Mitchell
Browse files
Added search feature to Period Script Admin.
parent
f2d68bf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
bmsapp/admin.py
bmsapp/admin.py
+1
-0
No files found.
bmsapp/admin.py
View file @
c10f6dee
...
...
@@ -198,6 +198,7 @@ class AlertRecipientAdmin(admin.ModelAdmin):
@
admin
.
register
(
PeriodicScript
)
class
SensorAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'script_file_name'
,
'description'
,
'period'
,
'script_parameters'
)
search_fields
=
[
'script_file_name'
,
'description'
,
'script_parameters'
]
readonly_fields
=
(
'script_results'
,)
formfield_overrides
=
{
models
.
TextField
:
{
'widget'
:
Textarea
(
attrs
=
{
'rows'
:
8
,
'cols'
:
80
})},
...
...
Write
Preview
Markdown
is supported
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