Skip to content

Commit

Permalink
feat: add fixed_usd_price to CourseRunSerializer and CRUD updates (#4401
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AfaqShuaib09 committed Aug 9, 2024
1 parent fab204f commit 177bbbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course_discovery/apps/api/tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,8 @@ def get_expected_data(cls, course_run, course_skill, request):
'is_enrollable': course_run.is_enrollable,
'restriction_type': (
course_run.restricted_run.restriction_type if hasattr(course_run, 'restricted_run') else None
)
),
'fixed_price_usd': float(course_run.fixed_price_usd),
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Meta:
'type',
'weeks_to_complete',
'restriction_type',
'fixed_price_usd',
)


Expand Down

0 comments on commit 177bbbb

Please sign in to comment.