Bug 9745 - Django DEBUG variable set to True in settings file provokes a NameError when trying to filter the a table
Summary: Django DEBUG variable set to True in settings file provokes a NameError when ...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M1
Assignee: Elliot Smith
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-09 16:56 UTC by Libertad
Modified: 2016-07-12 20:59 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
This is the web page output (44.26 KB, application/vnd.oasis.opendocument.text)
2016-06-09 16:56 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2016-06-09 16:56:55 UTC
Created attachment 3229 [details]
This is the web page output

DESCRIPTION

When trying to filter a column in a table a NameError occurs.

STEPS TO REPRODUCE:
 
 
1. Start with a default Yocto project (qemux86), start the Toaster, and build "bitbake core-image-minimal". 
 
2. In Toaster, select the build, and select the "Tasks" link in the left sidebar 
  
3. Try to filter a column
 

EXPECTED OUTCOME:

I Expected to see the table filtered.


***ERROR MESSAGE SHOWN:

NameError at /toastergui/build/4/tasks/

name 'k' is not defined

Request Method: 	GET
Request URL: 	http://localhost:8000/toastergui/build/4/tasks/?search=&filter=outcome%3A2&count=25&page=1&orderby=order%3A%2B
Django Version: 	1.8.13
Exception Type: 	NameError
Exception Value: 	

name 'k' is not defined
.
.
.
.
.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code. 
*******

COMMENTS: 
I asked in the toaster chat and it seems that Elliot has already submitted a patch for this. But I was unable to find the bug related to it. So, this may be duplicated but I am opening this bug to attach to my test run.
Comment 1 Belen Barros Pena 2016-06-09 18:33:18 UTC
Patch sent to the toaster mailing list

https://lists.yoctoproject.org/pipermail/toaster/2016-June/004790.html
Comment 2 Libertad 2016-07-12 20:59:43 UTC
I have verified this on commit 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098