Do not override the source on a Wish if a work is already on the wishlist

pull/1/head
Raymond Yee 2012-03-19 18:23:25 +00:00
parent d3bd2453ef
commit dab3ecfc31
1 changed files with 0 additions and 1 deletions

View File

@ -594,7 +594,6 @@ class Wishlist(models.Model):
def add_work(self, work, source):
try:
w = Wishes.objects.get(wishlist=self,work=work)
w.source=source
except:
Wishes.objects.create(source=source,wishlist=self,work=work)
work.update_num_wishes()