You should use db.Expando instead of db.Model, and remove the definition of my_property from your model. http://code.google.com/appengine/articles/update_schema.html
---------- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Fri, Jul 8, 2011 at 6:56 AM, Kyle Mulka <kyle.mu...@gmail.com> wrote: > I'm trying to delete a property from a Model, but its not working. The > docs say: > "Tip: To delete a property, delete the attribute from the Python > object, then save the object: del address.postal_code" > > It generates this error on the "del" line: > "AttributeError: __delete__" > > Here's the code I'm using: > > from google.appengine.ext import db > > class MyModel(db.Model): > my_property = db.StringProperty() > > my_model = MyModel() > my_model.my_property > my_model.put() > > del my_model.my_property > > my_model.put() > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appengine@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.