I am trying to retrieve a list in my database. My statement is this:
cr.execute("select es.* from student_resource es where es.date between '"+str(date_from)+"' and '"+str(date_to)+"'")
where date_from and date_to are of type fields.date but when when executed, that is i am trying to access my view, it says:
TypeError: cannot concatenate 'str' and 'int' objects
What did i miss with my statement?