Closes #4360: Drop support for the Django template language in export templates

This commit is contained in:
Jeremy Stretch
2020-08-21 11:16:30 -04:00
parent 2339fe22ae
commit d1071b79e3
7 changed files with 29 additions and 37 deletions

View File

@@ -71,17 +71,10 @@ class ExportTemplateSerializer(ValidatedModelSerializer):
content_type = ContentTypeField(
queryset=ContentType.objects.filter(FeatureQuery('export_templates').get_query()),
)
template_language = ChoiceField(
choices=TemplateLanguageChoices,
default=TemplateLanguageChoices.LANGUAGE_JINJA2
)
class Meta:
model = ExportTemplate
fields = [
'id', 'url', 'content_type', 'name', 'description', 'template_language', 'template_code', 'mime_type',
'file_extension',
]
fields = ['id', 'url', 'content_type', 'name', 'description', 'template_code', 'mime_type', 'file_extension']
#