modify add_menus

This commit is contained in:
Dmitriy Kuzmenko 2019-11-04 00:50:37 +03:00
parent db6c93a72f
commit 3462c74a65

View File

@ -16,7 +16,7 @@ class Command(BaseCommand):
if est: if est:
menu, _ = Menu.objects.get_or_create( menu, _ = Menu.objects.get_or_create(
category={"en-GB": 'FORMULAS'}, category={"en-GB": "FORMULAS"},
establishment=est establishment=est
) )
plate, created = Plate.objects.get_or_create( plate, created = Plate.objects.get_or_create(
@ -26,6 +26,7 @@ class Command(BaseCommand):
) )
if created: if created:
plate.currency_code = old_menu.currency plate.currency_code = old_menu.currency
plate.currency = est.currency
plate.save() plate.save()
count += 1 count += 1