For example I have got a db.model where I have
class Data(db.Model):
title = db.StringProperty(required = True)
Now I want to update title to list like following:
class Data(db.Model):
title = db.StringListProperty(required = True)
Now is there any shortcut way to do that? I am planning to it this way,
def copyQuery():
titles = db.GqlQuery("SELECT * FROM Data")
for t in titles:
Data(title= [ t.title ]).put()
t.delete()
Thanks in an advance :)
--
Regards,
*Md. Sadaf Noor,*
ID:11121023,
Electrical and Electronic
Engineering<http://www.bracu.ac.bd/academics/dept/course.php?code=BSEEE>
,
BRAC University <http://www.bracu.ac.bd>.
Contact:
Email:[email protected]
[email protected]
Mobile: +8801758085078
Website: sadaf2605.appspot.com
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.