summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-25 09:44:20 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-25 09:44:20 +0200
commit39652bf35dad2ea394051ad3d6b1c3563eb615c2 (patch)
tree7ca0958478a4faf014b212df4b246dbb10fb2b01 /src
parent7d794b98d683e569e3525c6d55ac07e2aeb6ee00 (diff)
test
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/apps/room/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 4b85c12..7229dd5 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -273,7 +273,7 @@ def _import_room(request,acc,r):
for key in ('sco_id','name','source_sco_id','urlpath','description','user_count','host_count'):
if r.has_key(key) and hasattr(room,key):
rv = getattr(room,key)
- if rv != r[key] and r[key] != None and r[key] != '':
+ if rv != r[key] and r[key] != None and r[key]:
setattr(room,key,r[key])
modified = True
@@ -287,8 +287,6 @@ def _import_room(request,acc,r):
logging.debug("saving ... %s" % pformat(room))
room.save()
- room.save()
-
return room
@login_required