Fix the AtomicGroup name display in the admin interface.
Adds an invalid bool column and use the existing invalid model to avoid
problems when deleting from the django admin interface.
Signed-off-by: Gregory Smith <gps@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2918 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/views.py b/frontend/afe/views.py
index 8d7911b..3638770 100644
--- a/frontend/afe/views.py
+++ b/frontend/afe/views.py
@@ -18,7 +18,8 @@
def model_documentation(request):
doc = '<h2>Models</h2>\n'
- for model_name in ('Label', 'Host', 'Test', 'User', 'AclGroup', 'Job'):
+ for model_name in ('Label', 'Host', 'Test', 'User', 'AclGroup', 'Job',
+ 'AtomicGroup'):
model_class = getattr(models, model_name)
doc += '<h3>%s</h3>\n' % model_name
doc += '<pre>\n%s</pre>\n' % model_class.__doc__