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.

Reply via email to