From f29d6c0b5e3aa1084e84aa04f2ee9b983d88afc1 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 17 Jan 2012 13:02:29 +0100 Subject: even better tag separation --- src/meetingtools/apps/room/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index ed8c2d6..8bd3f2d 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -466,7 +466,7 @@ def tag(request,rid): if request.method == 'POST': form = TagRoomForm(request.POST) if form.is_valid(): - for tag in form.cleaned_data['tag'].split(','): + for tag in form.cleaned_data['tag'].split('[,\s]+'): tag = tag.strip() ok,reason = _can_tag(request,tag) if ok: -- cgit v1.1