summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py4
-rw-r--r--bitbake/lib/toaster/toastergui/widgets.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 2aadc75b9e..586a69c314 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -19,6 +19,10 @@
19# with this program; if not, write to the Free Software Foundation, Inc., 19# with this program; if not, write to the Free Software Foundation, Inc.,
20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 21
22# pylint: disable=method-hidden
23# Gives E:848, 4: An attribute defined in json.encoder line 162 hides this method (method-hidden)
24# which is an invalid warning
25
22import operator,re 26import operator,re
23 27
24from django.db.models import F, Q, Sum, Count, Max 28from django.db.models import F, Q, Sum, Count, Max
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index 2adf574783..eb2914d87c 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -334,6 +334,9 @@ class ToasterTemplateView(TemplateView):
334 # renders a instance in a template, or returns the context as json 334 # renders a instance in a template, or returns the context as json
335 # the class-equivalent of the _template_renderer decorator for views 335 # the class-equivalent of the _template_renderer decorator for views
336 336
337 def __init__(self, *args, **kwargs):
338 super(ToasterTemplateView, self).__init__(*args, **kwargs)
339 self.context_entries = []
337 340
338 def get(self, *args, **kwargs): 341 def get(self, *args, **kwargs):
339 if self.request.GET.get('format', None) == 'json': 342 if self.request.GET.get('format', None) == 'json':