From 7e2320c9d366342c1f7c0a07fb47ab0e8cae02bf Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 7 Jan 2015 05:06:37 -0400 Subject: [PATCH] Update the ModelAttribute values for document metadata to reflect the related_name change from: 'document_metadata' to 'metadata' --- mayan/apps/metadata/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mayan/apps/metadata/__init__.py b/mayan/apps/metadata/__init__.py index ac8996538b..8048c11918 100644 --- a/mayan/apps/metadata/__init__.py +++ b/mayan/apps/metadata/__init__.py @@ -85,7 +85,7 @@ register_model_list_columns(Document, [ ]) APIEndPoint('metadata') -ModelAttribute(Document, 'document_metadata__metadata_type__name', label=_('Metadata type name'), type_name='query') -ModelAttribute(Document, 'document_metadata__value', label=_('Metadata type value'), type_name='query') -ModelAttribute(Document, 'document_metadata', type_name='related', description=_('Queryset containing a MetadataType instance reference and a value for that metadata type')) +ModelAttribute(Document, 'metadata__metadata_type__name', label=_('Metadata type name'), type_name='query') +ModelAttribute(Document, 'metadata__value', label=_('Metadata type value'), type_name='query') +ModelAttribute(Document, 'metadata', type_name='related', description=_('Queryset containing a MetadataType instance reference and a value for that metadata type')) ModelAttribute(Document, 'metadata_value_of', label=_('Value of a metadata'), description=_('Return the value of a specific document metadata'), type_name=['property', 'indexing'])