dlamotte / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

tagging.utils.edit_string_for_tags doesn't handle a single tag with spaces #228

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
>>> import tagging
>>> tag, _ = tagging.models.Tag.objects.get_or_create(name='spa ces')
>>> tagging.utils.edit_string_for_tags([tag])
u'spa ces'
>>> 
tagging.utils.parse_tag_input(tagging.utils.edit_string_for_tags([tag]))
[u'ces', u'spa']

Expected output:
[u'spa ces']

edit_string_for_tags([tag]) should probably have returned u',spa ces' 
instead.

Patch is attached.

Original issue reported on code.google.com by paulswa...@gmail.com on 3 Dec 2009 at 5:26

Attachments:

GoogleCodeExporter commented 8 years ago
Ugh, don't know how I missed *both* other copies of this bug. Wish c.g.c let me 
mark 
it as such.

Original comment by paulswa...@gmail.com on 3 Dec 2009 at 5:27