Merge with d2c99cb0318702424690dd9239b22af5b5216ba5
authorcavaliet
Mon, 06 Feb 2012 12:09:38 +0100
changeset 531 7bb62216b289
parent 530 a69f1af2fe47 (diff)
parent 529 d2c99cb03187 (current diff)
child 533 4d95862afbb2
Merge with d2c99cb0318702424690dd9239b22af5b5216ba5
--- 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: