This commit is contained in:
Chris Van 2011-06-17 17:13:17 -07:00
Родитель 12b7a43356
Коммит 17e1d1069f
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -4,6 +4,7 @@ import json
import urlparse
from django import http
from django.conf import settings
from django.contrib import admin
from django.db import IntegrityError
from django.db.models import F
@ -90,7 +91,11 @@ def get_modules(request, platform, version):
def get_featured_personas(request):
categories, filter, base, category = personas_listing(request)
featured = base & Addon.objects.new_featured(request.APP)
if settings.NEW_FEATURES:
featured_addons = Addon.objects.new_featured(request.APP)
else:
featured_addons = Addon.objects.featured(request.APP)
featured = base & featured_addons
return featured[:6]

Просмотреть файл

@ -930,10 +930,7 @@ VALIDATE_ADDONS = True
# Feature flags
SEARCH_EXCLUDE_PERSONAS = True
UNLINK_SITE_STATS = True
# Use featured collections.
NEW_FEATURES = True
NEW_FEATURES = False
# Set to True if we're allowed to use X-SENDFILE.
XSENDFILE = True