Commits

Anonymous committed 6c5d874

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

Comments (0)

Files changed (1)

lfs/core/management/commands/lfs_init.py

         # 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")