Move metadata widget code to metadata/widgets.py.
This commit is contained in:
@@ -100,15 +100,6 @@ def metadata_repr_as_list(metadata_list):
|
||||
return output
|
||||
|
||||
|
||||
def get_metadata_string(document):
|
||||
"""
|
||||
Return a formated representation of a document's metadata values
|
||||
"""
|
||||
return ', '.join(
|
||||
['%s - %s' % (document_metadata.metadata_type, document_metadata.value) for document_metadata in document.metadata.all()]
|
||||
)
|
||||
|
||||
|
||||
def convert_dict_to_dict_list(dictionary):
|
||||
result = []
|
||||
for key, value in dictionary.items():
|
||||
|
||||
Reference in New Issue
Block a user