mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Fixed bug in deleting stream profiles
This commit is contained in:
parent
656c9e9e14
commit
c4f470e8f7
3 changed files with 13 additions and 6 deletions
|
|
@ -58,12 +58,6 @@ class StreamProfile(models.Model):
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def delete(self):
|
||||
if self.locked():
|
||||
raise ValueError("This profile is locked and cannot be deleted.")
|
||||
|
||||
self.delete()
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if self.pk: # Only check existing records
|
||||
orig = StreamProfile.objects.get(pk=self.pk)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue