mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-10 08:21:01 +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:
1 parent
4718df271f
commit
e49ecd4dfe
5 files changed
+108
-5
No files matched your search
@@ -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