Skip to content

Commit

Permalink
Merge pull request #1502 from gustavomm19/template-url-serializer
Browse files Browse the repository at this point in the history
add template_url and dependencies to the assets serializer
  • Loading branch information
tommygonzaleza authored Nov 19, 2024
2 parents 95d6c85 + 2e008cb commit b396d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions breathecode/registry/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ class AssetBigSerializer(AssetMidSerializer):
delivery_instructions = serpy.Field()
delivery_formats = serpy.Field()
delivery_regex_url = serpy.Field()
template_url = serpy.Field()
dependencies = serpy.Field()

academy = AcademySmallSerializer(required=False)

Expand Down
5 changes: 5 additions & 0 deletions breathecode/registry/tests/urls/v1/tests_academy_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def database_item(academy, category, data={}):
"enable_table_of_content": True,
"agent": None,
"learnpack_deploy_url": None,
"template_url": None,
"dependencies": None,
"preview_in_tutorial": None,
**data,
}

Expand Down Expand Up @@ -133,6 +136,8 @@ def post_serializer(academy, category, data={}):
"agent": None,
"learnpack_deploy_url": None,
"updated_at": UTC_NOW.isoformat().replace("+00:00", "Z"),
"template_url": None,
"dependencies": None,
**data,
}

Expand Down

0 comments on commit b396d51

Please sign in to comment.