This seems to me like it should be a boolean instead of a string, especially since you're going to use it in a conditional later on: `if self.delete_related:` You use a boolean in `settings.xml` anyway, so there is no need to treat it as a string here.