mardi 29 avril 2014

Update raw query is not working in django


Vote count:

0




Here i passing value by post request from form and and want to update only notes field from TestcaseCache table pk is id of TestcaseCache table



def saveReviewTestcase(request,self,test_id):

if request.method == 'POST':
print test_id
input_notes=request.POST.get('textarea')
cursor = connection.cursor()
cursor.execute("UPDATE TestcaseCache SET id= test_id WHERE notes = %s", [self.input_notes])
row = cursor.fetchone()
print row


asked 42 secs ago






Aucun commentaire:

Enregistrer un commentaire