# HG changeset patch # User cavaliet # Date 1328526578 -3600 # Node ID 7bb62216b289599c8bf25e56fc066a435e2ec421 # Parent a69f1af2fe47a8e792340b8aa707e5993ef79cc2# Parent d2c99cb0318702424690dd9239b22af5b5216ba5 Merge with d2c99cb0318702424690dd9239b22af5b5216ba5 diff -r d2c99cb03187 -r 7bb62216b289 src/ldt/ldt/ldt_utils/forms.py --- a/src/ldt/ldt/ldt_utils/forms.py Mon Feb 06 11:52:17 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/forms.py Mon Feb 06 12:09:38 2012 +0100 @@ -68,8 +68,9 @@ if not iriurl_data: iriurl_data = "%s/%s.iri" % (iri_id_data, iri_id_data) cleaned_data['iriurl'] = iriurl_data - # we add a comma to the tag list, to force comma separated list and enable tags with spaces. - cleaned_data['tags'] = cleaned_data['tags'] + ',' + # if needed, we add a comma to the tag list, to force comma separated list and enable tags with spaces. + if ',' not in cleaned_data['tags'] : + cleaned_data['tags'] = cleaned_data['tags'] + ',' return cleaned_data class Meta: