Little correction on content tag management.
authorcavaliet
Mon, 06 Feb 2012 15:17:25 +0100
changeset 535 7ef1fee10085
parent 534 e2d15b14ce56
child 537 8589160ac9e3
Little correction on content tag management.
src/ldt/ldt/ldt_utils/forms.py
--- a/src/ldt/ldt/ldt_utils/forms.py	Mon Feb 06 15:03:43 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/forms.py	Mon Feb 06 15:17:25 2012 +0100
@@ -69,7 +69,7 @@
             iriurl_data = "%s/%s.iri" % (iri_id_data, iri_id_data)    
         cleaned_data['iriurl'] = iriurl_data
         # 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'] :
+        if ',' not in cleaned_data['tags'] and cleaned_data['tags']!="" :
             cleaned_data['tags'] = cleaned_data['tags'] + ','
         return cleaned_data