Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
Add more info and editable fields
  • Loading branch information
clavay authored Nov 5, 2020
1 parent 5f89bd2 commit 55ba7ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyscada/scripting/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
logger = logging.getLogger(__name__)


admin_site.register(Script)
class ScriptAdmin(admin.ModelAdmin):
list_display = ('id', 'label', 'active', 'interval', 'script_file',)
list_editable = ('label', 'active', 'interval', 'script_file', )
list_display_links = ('id',)


admin_site.register(Script, ScriptAdmin)

0 comments on commit 55ba7ee

Please sign in to comment.