fixed unable to delete message styles #66
All checks were successful
Build and Push Docker Image / build (push) Successful in 14s
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:
parent
306b24988f
commit
0b50b2bb7f
@ -150,7 +150,7 @@ class MessageStyle(models.Model):
|
|||||||
if self.auto_created:
|
if self.auto_created:
|
||||||
raise ValidationError("Cannot delete 'MessageStyle' instance with 'auto_created=True'")
|
raise ValidationError("Cannot delete 'MessageStyle' instance with 'auto_created=True'")
|
||||||
|
|
||||||
super().__init__(self)
|
super().delete()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user