Change the atomic group pull down menu displayed in the admin interface for Labels to a text box in hopes that it won't prepopulate the selection with a value that then inadvertently gets set when the field is intentionally NULL (the common case). Also: display the atomic group in the labels list view.
Signed-off-by: Gregory Smith <[email protected]> --- autotest/frontend/afe/admin.py 2010-06-03 17:05:22.000000000 -0700 +++ autotest/frontend/afe/admin.py 2011-02-28 09:13:08.000000000 -0800 @@ -57,7 +57,11 @@ class LabelAdmin(SiteAdmin): - list_display = ('name', 'kernel_config') + list_display = ('name', 'atomic_group', 'kernel_config') + # Avoid a bug with the admin interface showing a select box pointed at an + # AtomicGroup when this field is intentionally NULL such that editing a + # label via the admin UI unintentionally sets an atomicgroup. + raw_id_fields = ('atomic_group',) form = LabelForm _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
