diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-09-28 21:45:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-29 13:44:47 +0100 |
commit | 8152db1e35b9a3f35a25f801008f6fc61a6b11c4 (patch) | |
tree | 2f9dc5220fd91e1b55cd81c0751bc4f68907bc22 /lib | |
parent | 68b9c2d95ab17ee2d16325862342126eb5c3c1a7 (diff) | |
download | bitbake-8152db1e35b9a3f35a25f801008f6fc61a6b11c4.zip |
toaster: widgets ToasterTable Add more info to search field exception
If we get a search fields exception then also print out the model name
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/toaster/toastergui/widgets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index 7f963706..aaa59c08 100644 --- a/lib/toaster/toastergui/widgets.py +++ b/lib/toaster/toastergui/widgets.py @@ -229,7 +229,8 @@ class ToasterTable(TemplateView): """Creates a query based on the model's search_allowed_fields""" if not hasattr(self.queryset.model, 'search_allowed_fields'): - raise Exception("Err Search fields aren't defined in the model") + raise Exception("Search fields aren't defined in the model %s" + % self.queryset.model) search_queries = [] for st in search_term.split(" "): |