fixed unable to delete message styles #66
All checks were successful
Build and Push Docker Image / build (push) Successful in 14s

embarrassing mistake, accidentally used super().__init__(self) over super().delete()
This commit is contained in:
Corban-Lee Jones 2024-10-12 23:35:49 +01:00
parent 306b24988f
commit 0b50b2bb7f

View File

@ -150,7 +150,7 @@ class MessageStyle(models.Model):
if self.auto_created:
raise ValidationError("Cannot delete 'MessageStyle' instance with 'auto_created=True'")
super().__init__(self)
super().delete()
def __str__(self):
return self.name