mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
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:
@@ -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."),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user