diff --git a/core/models.py b/core/models.py index 4670954..6b1e15f 100644 --- a/core/models.py +++ b/core/models.py @@ -76,8 +76,8 @@ class Session(models.Model): class Hook(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) - name = models.CharField(max_length=1024, null=True, blank=True) - hook = models.CharField(max_length=255) + name = models.CharField(max_length=1024, null=True, blank=True, unique=True) + hook = models.CharField(max_length=255, unique=True) received = models.IntegerField(default=0)