Commit c10f6dee authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Added search feature to Period Script Admin.

parent f2d68bf0
......@@ -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})},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment