Little correction on content tag management.
authorcavaliet
Mon, 06 Feb 2012 10:35:48 +0100
changeset 527 348844fc63ce
parent 526 1def9a19333d
child 529 d2c99cb03187
child 530 a69f1af2fe47
child 532 155456f99f3d
Little correction on content tag management.
src/ldt/ldt/ldt_utils/forms.py
web/static/media/.keepme
web/static/site/.keepme
--- a/src/ldt/ldt/ldt_utils/forms.py	Fri Feb 03 17:20:50 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/forms.py	Mon Feb 06 10:35:48 2012 +0100
@@ -68,6 +68,8 @@
         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'] + ','
         return cleaned_data
     
     class Meta: