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

Fixes #3001: Fix API representation of ObjectChange action and add changed_object_type

This commit is contained in:
Jeremy Stretch
2019-03-28 09:57:26 -04:00
parent 2e1887eb0e
commit 3f5f75c71f
3 changed files with 18 additions and 5 deletions

View File

@ -10,7 +10,7 @@ from taggit.models import Tag
from extras import filters
from extras.models import (
ConfigContext, CustomField, ExportTemplate, Graph, ImageAttachment, ObjectChange, ReportResult, TopologyMap,
ConfigContext, ExportTemplate, Graph, ImageAttachment, ObjectChange, ReportResult, TopologyMap,
)
from extras.reports import get_report, get_reports
from utilities.api import FieldChoicesViewSet, IsAuthenticatedOrLoginNotRequired, ModelViewSet
@ -24,6 +24,7 @@ from . import serializers
class ExtrasFieldChoicesViewSet(FieldChoicesViewSet):
fields = (
(Graph, ['type']),
(ObjectChange, ['action']),
)