diff options
author | Leif Johansson <leifj@sunet.se> | 2012-11-27 14:23:51 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-11-27 14:23:51 +0100 |
commit | 63f93fb47c2be2b68e5ca974a3f6d0e708e943b6 (patch) | |
tree | 6c4c9c6f530b95a29c619723df7f46242cd9654d | |
parent | 3c442acd9a97e0efe48f274868ba23186f6f3f96 (diff) |
fix delete bug
-rw-r--r-- | meetingtools/apps/room/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meetingtools/apps/room/views.py b/meetingtools/apps/room/views.py index 7116f01..e0fbc97 100644 --- a/meetingtools/apps/room/views.py +++ b/meetingtools/apps/room/views.py @@ -340,11 +340,11 @@ def delete(request,id): with ac_api_client(room.sco.acc) as api: api.request('sco-delete',{'sco-id':room.sco.sco_id},raise_error=True) clear_acl(room) - del room.sco + room.sco.delete() if room.folder_sco is not None: - del room.folder_sco + room.folder_sco.delete() if room.deleted_sco is not None: - del room.deleted_sco + room.deleted_sco.delete() room.delete() return redirect_to("/rooms") else: |