1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Adds custom field on webhook model (#13336)

* adds custom field on webhook model #11936

* adds tags on webhook model #11936

* Remove extraneous import; revert change to NetBoxModelForm (no longer needed)

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Abhimanyu Saharan
2023-08-01 23:35:47 +05:30
committed by GitHub
parent 7b998cfeb4
commit 1cc78be6ca
11 changed files with 51 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
from extras import filtersets, models
from extras.graphql.mixins import CustomFieldsMixin, TagsMixin
from netbox.graphql.types import BaseObjectType, ObjectType
from netbox.graphql.types import BaseObjectType, ObjectType, OrganizationalObjectType
__all__ = (
'ConfigContextType',
@@ -106,7 +106,7 @@ class TagType(ObjectType):
filterset_class = filtersets.TagFilterSet
class WebhookType(ObjectType):
class WebhookType(OrganizationalObjectType):
class Meta:
model = models.Webhook