simplifying the home view
This commit is contained in:
Родитель
5a8b671f79
Коммит
b106823f7b
|
@ -18,11 +18,9 @@ def home(request):
|
|||
if not getattr(request, 'can_view_consumer', True):
|
||||
return jingo.render(request, 'home/home_walled.html')
|
||||
region = getattr(request, 'REGION', mkt.regions.WORLDWIDE)
|
||||
featured = Webapp.featured(region=region)[:9]
|
||||
featured = Webapp.featured(region=region, cat=None)[:9]
|
||||
popular = _add_mobile_filter(request, Webapp.popular(region=region))[:10]
|
||||
latest = _add_mobile_filter(request, Webapp.latest(region=region))[:10]
|
||||
return jingo.render(request, 'home/home.html', {
|
||||
'featured': featured,
|
||||
'popular': popular,
|
||||
'latest': latest
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче