handle age_level in merge_works

pull/1/head
eric 2016-10-12 13:55:27 -04:00
parent 3ac7769656
commit d4f47b2a5e
1 changed files with 2 additions and 0 deletions

View File

@ -487,6 +487,8 @@ def merge_works(w1, w2, user=None):
w1.featured = w2.featured
if w2.is_free and not w1.is_free:
w1.is_free = True
if w2.age_level and not w1.age_level:
w1.age_level = w2.age_level
w1.save()
for wishlist in models.Wishlist.objects.filter(works__in=[w2]):
w2source = wishlist.work_source(w2)