# HG changeset patch # User Sylvain Thénault # Date 1254845831 -7200 # Node ID 7f026d15cc8254689d27bdeb29f15a973711b31f # Parent 067610a0e12f935367b70e606be8c571c5432d4e doesn't necessarily have parent diff -r 067610a0e12f -r 7f026d15cc82 entities/__init__.py --- 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(), {}