Add metrics to admin
@@ -7,13 +7,18 @@ from experiments.models import Experiment, ExperimentStatus, ExperimentJob, Expe
class ExperimentAdmin(admin.ModelAdmin):
- readonly_fields = ('sequence', 'unique_name', 'last_status', 'created_at', 'updated_at')
+ readonly_fields = (
+ 'sequence', 'unique_name', 'last_status', 'last_status', 'created_at', 'updated_at')
class ExperimentStatusAdmin(admin.ModelAdmin):
readonly_fields = ('created_at',)
+class ExperimentMetricAdmin(admin.ModelAdmin):
+ readonly_fields = ('created_at',)
+
+
class ExperimentJobAdmin(admin.ModelAdmin):
readonly_fields = ('sequence', 'unique_name', 'last_status', 'created_at', 'updated_at')
@@ -24,5 +29,6 @@ class ExperimentJobStatusAdmin(admin.ModelAdmin):
admin.site.register(Experiment, ExperimentAdmin)
admin.site.register(ExperimentStatus, ExperimentStatusAdmin)
+admin.site.register(ExperimentStatus, ExperimentMetricAdmin)
admin.site.register(ExperimentJob, ExperimentJobAdmin)
admin.site.register(ExperimentJobStatus, ExperimentJobStatusAdmin)
