1. Alexey Sveshnikov
  2. django-lfs

Commits

alexey.sveshnikov  committed 6c5d874

fixed error in lfs_init ('Shop' object has no attribute 'countries')

  • Participants
  • Parent commits 54d59d2
  • Branches default

Comments (0)

Files changed (1)

File lfs/core/management/commands/lfs_init.py

View file
         # Shop
         shop = Shop.objects.create(name="LFS", shop_owner="John Doe",
             from_email="john@doe.com", notification_emails="john@doe.com", description=SHOP_DESCRIPTION, default_country=usa)
-        shop.countries.add(usa)
+        shop.invoice_countries.add(usa)
+        shop.shipping_countries.add(usa)
 
         # Actions
         tabs = ActionGroup.objects.create(name="Tabs")