diff --git a/beat/web/plotters/admin.py b/beat/web/plotters/admin.py index 8673113a5bd0590f060449e57090ea67172d907e..8ec74eab6f08cbc7d0055ebbb303e6e9fb1c87f0 100644 --- a/beat/web/plotters/admin.py +++ b/beat/web/plotters/admin.py @@ -90,6 +90,11 @@ class PlotterModelForm(forms.ModelForm): required=False, ) + sample_data = CodeMirrorJSONCharField( + readonly=True, + required=False, + ) + class Meta: model = Plotter exclude = [] @@ -137,7 +142,7 @@ class PlotterModelForm(forms.ModelForm): class PlotterAdmin(admin.ModelAdmin): - list_display = ('id', 'author', 'name', 'version', 'language', 'dataformat', 'short_description', 'sample_data') + list_display = ('id', 'author', 'name', 'version', 'language', 'dataformat', 'short_description') search_fields = [ 'name', 'dataformat__name', @@ -153,7 +158,8 @@ class PlotterAdmin(admin.ModelAdmin): list_display_links = ('id', 'name') list_filter = ('author',) - readonly_fields = ('hash', 'short_description', 'dataformat', 'referenced_libraries') + readonly_fields = ('hash', 'short_description', 'dataformat', + 'referenced_libraries') actions = [ rehash_plotter, @@ -194,7 +200,8 @@ class PlotterAdmin(admin.ModelAdmin): ('Cached Information (read-only)', dict( classes=('collapse',), - fields=('dataformat', 'parameters', 'referenced_libraries'), + fields=('dataformat', 'parameters', 'referenced_libraries', + 'sample_data'), ), ), ('Definition',