From 3462c74a656373b6fc47061257a2d9ce9a2fae6a Mon Sep 17 00:00:00 2001 From: Dmitriy Kuzmenko Date: Mon, 4 Nov 2019 00:50:37 +0300 Subject: [PATCH] modify add_menus --- apps/establishment/management/commands/add_menus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/establishment/management/commands/add_menus.py b/apps/establishment/management/commands/add_menus.py index 3ae55f6b..8339088e 100644 --- a/apps/establishment/management/commands/add_menus.py +++ b/apps/establishment/management/commands/add_menus.py @@ -16,7 +16,7 @@ class Command(BaseCommand): if est: menu, _ = Menu.objects.get_or_create( - category={"en-GB": 'FORMULAS'}, + category={"en-GB": "FORMULAS"}, establishment=est ) plate, created = Plate.objects.get_or_create( @@ -26,6 +26,7 @@ class Command(BaseCommand): ) if created: plate.currency_code = old_menu.currency + plate.currency = est.currency plate.save() count += 1