Fix admin of InstanceActivity
diff --git a/circle/vm/admin.py b/circle/vm/admin.py
index 5291773..4151186 100644
--- a/circle/vm/admin.py
+++ b/circle/vm/admin.py
@@ -5,8 +5,12 @@ from .models import (Instance, InstanceActivity, InstanceTemplate, Interface,
NodeActivity, Trait)
+class InstanceActivityAdmin(admin.ModelAdmin):
+ exclude = ('parent', )
+
+
admin.site.register(Instance)
-admin.site.register(InstanceActivity)
+admin.site.register(InstanceActivity, InstanceActivityAdmin)
admin.site.register(InstanceTemplate)
admin.site.register(Interface)
admin.site.register(InterfaceTemplate)
-
Status changed to closed by commit 025706
Toggle commit list
Please
register
or
sign in
to comment