Skip to content

Commit 312e134

Browse files
committed
Добавлены поля "is_from_trajectory" "requires_subscription" при сериализации списка навыков
1 parent d906601 commit 312e134

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/courses/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class Meta:
5454
fields = (
5555
"id",
5656
"name",
57+
"is_from_trajectory",
58+
"requires_subscription",
5759
"who_created",
5860
"file_link",
5961
"quantity_of_levels",

apps/tests/courses_tests/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
{
9090
"id": 1,
9191
"name": "Навык 1",
92+
"is_from_trajectory": False,
93+
"requires_subscription": True,
9294
"who_created": "Создатель",
9395
"file_link": "http://some.com/",
9496
"free_access": False,

0 commit comments

Comments
 (0)