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

Closes #4711: Rename Webhook.obj_type to content_types

This commit is contained in:
Jeremy Stretch
2020-12-02 14:49:07 -05:00
parent f5133c6737
commit ba00d57d37
6 changed files with 31 additions and 10 deletions

View File

@@ -31,8 +31,7 @@ class Webhook(models.Model):
delete in NetBox. The request will contain a representation of the object, which the remote application can act on.
Each Webhook can be limited to firing only on certain actions or certain object types.
"""
# TODO: Rename obj_type to content_types (see #4711)
obj_type = models.ManyToManyField(
content_types = models.ManyToManyField(
to=ContentType,
related_name='webhooks',
verbose_name='Object types',