From 575005d5ef2059c33f8cdbf0b130b87fba87fd69 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 5 Aug 2011 10:54:58 +0200 Subject: remove tags on rooms when removing rooms --- src/meetingtools/apps/room/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/meetingtools') diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index f773ba5..66d13cc 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -280,6 +280,8 @@ def user_rooms(request): for r in Room.objects.filter(creator=request.user).all(): if (not r.sco_id in ar): # and (not r.self_cleaning): #XXX this logic isn't right! + for t in Tag.objects.get_for_object(r): + t.delete() r.delete() for r in user_rooms: -- cgit v1.1