Merge pull request #10308 from edx/ziafazal/SOL-1332

SOL-1332: use a generic function to check if entrance_exam feature is enabled or not
This commit is contained in:
Matt Drayer
2015-10-26 09:46:22 -04:00
10 changed files with 346 additions and 344 deletions

View File

@@ -24,6 +24,14 @@ def get_namespace_choices():
return NAMESPACE_CHOICES
def is_entrance_exams_enabled():
"""
Checks to see if the Entrance Exams feature is enabled
Use this operation instead of checking the feature flag all over the place
"""
return settings.FEATURES.get('ENTRANCE_EXAMS', False)
def is_prerequisite_courses_enabled():
"""
Returns boolean indicating prerequisite courses enabled system wide or not.