diff --git a/myproject/products/models/base.py b/myproject/products/models/base.py index 314fee4..66af855 100644 --- a/myproject/products/models/base.py +++ b/myproject/products/models/base.py @@ -184,9 +184,9 @@ class BaseProductEntity(models.Model): self.save(update_fields=['status', 'archived_by']) def delete(self, *args, **kwargs): - """Для совместимости: вызывает archive()""" + """Для совместимости: вызывает discontinue() - статус СНЯТ""" user = kwargs.pop('user', None) - self.archive(user=user) + self.discontinue(user=user) return 1, {self.__class__._meta.label: 1} def hard_delete(self):