modify add_menus
This commit is contained in:
parent
db6c93a72f
commit
3462c74a65
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user