Skip to content

Commit

Permalink
fix: fixed bug (typo) relationship now properly
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Oct 23, 2023
1 parent b572177 commit aa34250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions backend/outdated/outdated/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Meta:

class DependencyVersionSerializer(serializers.ModelSerializer):
status = serializers.ReadOnlyField()
dependency = DependencySerializer(read_only=True)

class Meta:
model = DependencyVersion
Expand All @@ -19,6 +20,7 @@ class Meta:

class ProjectSerializer(serializers.ModelSerializer):
status = serializers.ReadOnlyField()
dependency_versions = DependencyVersionSerializer(many=True, read_only=True)

class Meta:
model = Project
Expand Down
4 changes: 1 addition & 3 deletions backend/outdated/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@
),
"DEFAULT_RENDERER_CLASSES": (
# If you're performance testing, you will want to use the browseable API
# without forms, as the forms can generate their own queries.
# If performance testing, enable:
"rest_framework_json_api.renderers.JSONRenderer",
# Otherwise, to play around with the browseable API, enable:
# "rest_framework.renderers.BrowsableAPIRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
),
"TEST_REQUEST_RENDERER_CLASSES": (
"rest_framework_json_api.renderers.JSONRenderer",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/project-detailed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class ProjectDetailedRoute extends Route {
@service store;
model(params) {
return this.store.findRecord('project', params.id, {
include: 'dependecyVersions,dependecyVersions.dependency',
include: 'dependencyVersions,dependencyVersions.dependency',
});
}
}

0 comments on commit aa34250

Please sign in to comment.