Default unified_course_view on in devstack.

This commit is contained in:
Robert Raposa
2017-05-08 11:45:24 -04:00
parent 15b111410a
commit e185d886d4
2 changed files with 12 additions and 2 deletions

View File

@@ -237,8 +237,6 @@ from django.db.utils import ProgrammingError
from waffle.models import Flag
try:
flag, created = Flag.objects.get_or_create(name='unified_course_view')
flag.everyone = True
flag.save
WAFFLE_OVERRIDE = True
except ProgrammingError:
# during initial reset_db, the table for the flag doesn't yet exist.

View File

@@ -261,6 +261,18 @@ JWT_AUTH.update({
'JWT_AUDIENCE': 'lms-key',
})
# TODO: TNL-6546: Remove this waffle and flag code.
from django.db.utils import ProgrammingError
from waffle.models import Flag
try:
flag, created = Flag.objects.get_or_create(name='unified_course_view')
flag.everyone = True
flag.save()
WAFFLE_OVERRIDE = True
except ProgrammingError:
# during initial reset_db, the table for the flag doesn't yet exist.
pass
#####################################################################
# See if the developer has any local overrides.
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):