summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-05 10:54:58 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-05 10:54:58 +0200
commit575005d5ef2059c33f8cdbf0b130b87fba87fd69 (patch)
tree81122ec3af0ea03d5197c18ea783fe1ae312ca56
parent5d9177ccbb663869a3ccca47ed713dd2c1f4e7ae (diff)
remove tags on rooms when removing rooms
-rw-r--r--src/meetingtools/apps/room/views.py2
1 files changed, 2 insertions, 0 deletions
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: