fix duplicate shopping entries when using old list

This commit is contained in:
Chris Scoggins
2022-01-26 14:47:33 -06:00
parent 47823132f0
commit 4a48019885
4 changed files with 4 additions and 10 deletions

View File

@@ -121,11 +121,3 @@ def auto_add_shopping(sender, instance=None, created=False, weak=False, **kwargs
'servings': instance.servings
}
list_recipe = list_from_recipe(**kwargs)
# user = self.context['request'].user
# if user.userpreference.shopping_add_onhand:
# if checked := validated_data.get('checked', None):
# instance.food.onhand_users.add(*user.userpreference.shopping_share.all(), user)
# elif checked == False:
# instance.food.onhand_users.remove(*user.userpreference.shopping_share.all(), user)