Verified Commit a24c2841 authored by Peter Stanko's avatar Peter Stanko
Browse files

Whitelisted the description

parent c35ce480
Pipeline #12963 failed with stage
in 16 minutes and 43 seconds
......@@ -338,7 +338,7 @@ course_schema = CourseSchema(strict=True)
course_schema_reduced = CourseSchema(
strict=True, only=(*ALWAYS_ALLOWED, 'name', 'codename',))
courses_schema = CourseSchema(many=True, only=(
*ALWAYS_ALLOWED, 'name', 'codename'))
*ALWAYS_ALLOWED, 'name', 'codename', 'description'))
course_import_schema = CourseImportSchema(strict=True)
group_schema = GroupSchema(strict=True)
groups_schema = GroupSchema(many=True, only=(
......@@ -52,7 +52,7 @@ def delete_course(course: Course):
def __set_course_props(course: Course, data: dict):
return general.update_entity(course, data, allowed=['name', 'codename'])
return general.update_entity(course, data, allowed=['name', 'codename', 'description'])
def update_course(course: Course, data: dict) -> Course:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment