entities/__init__.py
branchstable
changeset 3578 7f026d15cc82
parent 3566 521337e71fbb
child 3589 a5432f99f2d9
child 3689 deb13e88e037
--- a/entities/__init__.py	Tue Oct 06 18:15:05 2009 +0200
+++ b/entities/__init__.py	Tue Oct 06 18:17:11 2009 +0200
@@ -183,7 +183,7 @@
         """return (path, parameters) which should be used as redirect
         information when this entity is being deleted
         """
-        if self.parent():
+        if hasattr(self, 'parent') and self.parent():
             return self.parent().rest_path(), {}
         return str(self.e_schema).lower(), {}