Skip to content

Commit 825a370

Browse files
committed
chore: use to_v3_profile_dict in get_v3_contributors
1 parent d9a17d1 commit 825a370

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

versions/views.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,7 @@ def get_version_heading(self, obj, is_current_release, v3=False):
166166
def get_v3_contributors(self, version):
167167
"""Shape the release's top contributors for the v3 contributors card."""
168168
return [
169-
{
170-
"name": author.display_name,
171-
"avatar_url": author.avatar_url or "",
172-
"profile_url": author.github_profile_url or "",
173-
"role": "Contributor",
174-
}
169+
author.to_v3_profile_dict("Contributor")
175170
for author in self.get_top_contributors_release(version)
176171
]
177172

0 commit comments

Comments
 (0)