Skip to content
Snippets Groups Projects
Commit d0914ef4 authored by Dave St.Germain's avatar Dave St.Germain
Browse files

Added 'show calculator' to courseware metadata

parent abc43a93
No related merge requests found
......@@ -828,6 +828,13 @@ class CourseOverview(TimeStampedModel):
"""
return self._original_course.teams_enabled
@property
def show_calculator(self):
"""
TODO: move this to the model.
"""
return self._original_course.show_calculator
def __str__(self):
"""Represent ourselves with the course key."""
return six.text_type(self.id)
......
......@@ -87,6 +87,7 @@ class CourseInfoSerializer(serializers.Serializer): # pylint: disable=abstract-
user_has_staff_access = serializers.BooleanField()
tabs = serializers.SerializerMethodField()
verified_mode = serializers.SerializerMethodField()
show_calculator = serializers.BooleanField()
def __init__(self, *args, **kwargs):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment