Customize the empty formset message for the document type metadata type relationship view.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-02-22 03:13:49 -04:00
committed by Roberto Rosario
parent 34fc5a5bcf
commit d64f72351d

View File

@@ -592,6 +592,9 @@ class SetupDocumentTypeMetadataTypes(FormView):
def get_extra_context(self):
return {
'form_display_mode_table': True,
'form_empty_label': _(
'No metadata types available. Add at least one.'
),
'object': self.get_object(),
'title': _(
'Metadata types for document type: %s'