Bug 9745

Summary: Django DEBUG variable set to True in settings file provokes a NameError when trying to filter the a table
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Elliot Smith <elliot.smith>
Status: VERIFIED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium+ CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.2   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
This is the web page output none

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