[minor] setting up website optional in setup wizard

This commit is contained in:
Rushabh Mehta
2016-08-09 16:43:15 +05:30
parent 722b22a834
commit ec2d09c557
8 changed files with 70 additions and 11 deletions

View File

@@ -15,6 +15,8 @@ def get_context(context):
if route:
item.route = '/' + route
context.title = homepage.title or homepage.company
# show atleast 3 products
if len(homepage.products) < 3:
for i in xrange(3 - len(homepage.products)):
@@ -24,6 +26,4 @@ def get_context(context):
'route': '#'
})
return {
'homepage': homepage
}
context.homepage = homepage