mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add template_language field to Graph
This commit is contained in:
@@ -34,7 +34,7 @@ class GraphSerializer(ValidatedModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Graph
|
||||
fields = ['id', 'type', 'weight', 'name', 'source', 'link']
|
||||
fields = ['id', 'type', 'weight', 'name', 'template_language', 'source', 'link']
|
||||
|
||||
|
||||
class RenderedGraphSerializer(serializers.ModelSerializer):
|
||||
|
@@ -26,7 +26,7 @@ from . import serializers
|
||||
class ExtrasFieldChoicesViewSet(FieldChoicesViewSet):
|
||||
fields = (
|
||||
(ExportTemplate, ['template_language']),
|
||||
(Graph, ['type']),
|
||||
(Graph, ['type', 'template_language']),
|
||||
(ObjectChange, ['action']),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user