Webhooks: Add comment field (#3095)

This commit is contained in:
ser8phin
2023-02-07 15:17:19 +01:00
committed by GitHub
parent ba2c6e1e58
commit 82dd417a8e
7 changed files with 29 additions and 2 deletions

View File

@@ -112,6 +112,7 @@ class WebHook(models.Model):
target_url = models.URLField(verbose_name=_("Target URL"), max_length=255)
all_events = models.BooleanField(default=True, verbose_name=_("All events (including newly created ones)"))
limit_events = models.ManyToManyField('pretixbase.Event', verbose_name=_("Limit to events"), blank=True)
comment = models.CharField(verbose_name=_("Comment"), max_length=255, null=True, blank=True)
class Meta:
ordering = ('id',)