I use the Google engine to work with django 1.0.2 (and django-helper) and wonder how people do recursive deletion. Suppose you have a model that looks something like this:
class Top (BaseModel):
pass
class Bottom (BaseModel):
daddy = db.ReferenceProperty (Top)
Now, when I delete an object of type "Top", I want all the associated "Bottom" objects to be deleted as well.
Like now, when I delete the "Top" object, the "Bottom" objects remain, and then I get data that does not belong anywhere. When accessing the data warehouse in the view, I get:
Caught an exception while rendering: ReferenceProperty failed to be resolved.
Of course, I could find all the objects and delete them, but since my real model is at least 5 levels, I hope that you can make sure that this can be done automatically.
I found this article on how it works with Java, and it looks like what I want too.
Does anyone know how I could get this behavior in django?
python google-app-engine django
Mattias nilsson
source share