From c02e9104a850ae26aa6b5e8e46a4a4a0af7391ae Mon Sep 17 00:00:00 2001 From: John Glover Date: Tue, 14 Feb 2012 15:38:37 +0000 Subject: [PATCH] [1720][converters] return a list of tags instead of a tag string from convert_from_tags --- ckan/logic/converters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ckan/logic/converters.py b/ckan/logic/converters.py index 8801387da2a..066520cc1e8 100644 --- a/ckan/logic/converters.py +++ b/ckan/logic/converters.py @@ -77,11 +77,11 @@ def callable(key, data, errors, context): if not v: raise Invalid(_('Tag vocabulary "%s" does not exist') % vocab) - tags = {} + tags = [] for k in data.keys(): if k[0] == 'tags': if data[k].get('vocabulary_id') == v.id: - tags[k] = data[k] - data[key] = ', '.join([t['name'] for t in tags.values()]) + tags.append(data[k]['name']) + data[key] = tags return callable