Enhancement: use charfield for webhook url, custom validation (#9128)

---------

Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
shamoon
2025-02-16 14:26:30 -08:00
committed by GitHub
parent 4718df271f
commit e49ecd4dfe
5 changed files with 108 additions and 5 deletions

View File

@@ -1203,9 +1203,12 @@ class WorkflowActionEmail(models.Model):
class WorkflowActionWebhook(models.Model):
url = models.URLField(
# We dont use the built-in URLField because it is not flexible enough
# validation is handled in the serializer
url = models.CharField(
_("webhook url"),
null=False,
max_length=256,
help_text=_("The destination URL for the notification."),
)