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