mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-18 15:34:36 +01:00
Fixes #4235: Fix API representation of content_type for export templates
This commit is contained in:
@@ -62,6 +62,9 @@ class RenderedGraphSerializer(serializers.ModelSerializer):
|
||||
#
|
||||
|
||||
class ExportTemplateSerializer(ValidatedModelSerializer):
|
||||
content_type = ContentTypeField(
|
||||
queryset=ContentType.objects.filter(EXPORTTEMPLATE_MODELS),
|
||||
)
|
||||
template_language = ChoiceField(
|
||||
choices=TemplateLanguageChoices,
|
||||
default=TemplateLanguageChoices.LANGUAGE_JINJA2
|
||||
|
||||
Reference in New Issue
Block a user