From: Eevee Date: Wed, 9 Dec 2009 03:32:42 +0000 (-0800) Subject: Fixed two minor crashes in lib.tags. X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/fd734cbace936d18aeec98f6cc254d7778665e05?hp=03c8b0becd6264301a64e9201588c60c9b588ad1 Fixed two minor crashes in lib.tags. Missed an occurrence of c.user. Removing a relation tag was sending two 'art' parameters. --- 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: