summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-01-17 13:05:00 +0100
committerLeif Johansson <leifj@sunet.se>2012-01-17 13:05:00 +0100
commit3b66edebe06b6b6b962f79c1169c4470b251e678 (patch)
tree7e57e5339ae0284cc965cd61648db74bf6a2f17d /src/meetingtools/apps/room
parente731b576555ff67821b83c18470169a39a57772e (diff)
even better tag separation
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 2c86e00..73e62e9 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('[, \t\n]+'):
+ for tag in re.split('[,\s]+',form.cleaned_data['tag']):
tag = tag.strip()
ok,reason = _can_tag(request,tag)
if ok: