From fd734cbace936d18aeec98f6cc254d7778665e05 Mon Sep 17 00:00:00 2001 From: Eevee Date: Tue, 8 Dec 2009 19:32:42 -0800 Subject: [PATCH] Fixed two minor crashes in lib.tags. Missed an occurrence of c.user. Removing a relation tag was sending two 'art' parameters. --- floof/lib/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floof/lib/tags.py b/floof/lib/tags.py index 2a9beaf..b42814e 100644 --- a/floof/lib/tags.py +++ b/floof/lib/tags.py @@ -100,7 +100,7 @@ def add_tags(art, tag_string, adding_user, me): # Do work! if prefix: if tag_text == 'me': - target_user = c.user + target_user = me else: target_user = User.get_by(name=tag_text) @@ -118,7 +118,7 @@ def add_tags(art, tag_string, adding_user, me): else: # XXX this will die for nonassociations - user_assoc = ArtUser.get_by(art=art, **user_assoc_data) + user_assoc = ArtUser.get_by(**user_assoc_data) user_assoc.delete() else: -- 2.7.4