From 774d09479c5b6986138c4e1cbc70a249e97b8939 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 11 Nov 2019 02:23:16 -0400 Subject: [PATCH] Add missing ModelProperty label entires Signed-off-by: Roberto Rosario --- HISTORY.rst | 2 ++ mayan/apps/file_metadata/apps.py | 5 +++-- mayan/apps/metadata/apps.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index ac4d722229..c245f4de70 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,6 +8,8 @@ tests. - Rename expected_content_type to expected_content_types and allow a list of content types to be specified. +- Add missing label to metadata and file metadata model + properties entries. 3.2.9 (2019-11-03) diff --git a/mayan/apps/file_metadata/apps.py b/mayan/apps/file_metadata/apps.py index 5bae454af2..837c065856 100644 --- a/mayan/apps/file_metadata/apps.py +++ b/mayan/apps/file_metadata/apps.py @@ -92,10 +92,11 @@ class FileMetadataApp(MayanAppConfig): ) ModelAttribute( - model=Document, name='file_metadata_value_of', + model=Document, + name='file_metadata_value_of.< dotted path to driver and property >', description=_( 'Return the value of a specific file metadata.' - ) + ), label=_('File metadata value of') ) ModelEventType.register( diff --git a/mayan/apps/metadata/apps.py b/mayan/apps/metadata/apps.py index 1a3a988bd7..5fb3f59075 100644 --- a/mayan/apps/metadata/apps.py +++ b/mayan/apps/metadata/apps.py @@ -93,10 +93,10 @@ class MetadataApp(MayanAppConfig): ) ModelAttribute( - model=Document, name='metadata_value_of', + model=Document, name='metadata_value_of.< metadata type name >', description=_( 'Return the value of a specific document metadata' - ) + ), label=_('Metadata value of') ) ModelField(