diff --git a/etiquette/decorators.py b/etiquette/decorators.py index c0ae60e..1c3ff30 100644 --- a/etiquette/decorators.py +++ b/etiquette/decorators.py @@ -75,6 +75,9 @@ def transaction(method): ''' @functools.wraps(method) def wrapped_transaction(self, *args, **kwargs): + if isinstance(self, objects.ObjectBase): + self.assert_not_deleted() + photodb = _get_relevant_photodb(self) commit = kwargs.pop('commit', False)