Skip to content

Commit 7b4e597

Browse files
committed
add sponsorship id to sponsor list api endpoint
this will be useful to make the sync more reliable to link via id not string
1 parent f58149c commit 7b4e597

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sponsors/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def get(self, request, *args, **kwargs):
3434
for sponsorship in sponsorships.select_related("sponsor").iterator():
3535
sponsor = sponsorship.sponsor
3636
base_data = {
37+
"sponsor_id": sponsor.id,
3738
"sponsor": sponsor.name,
3839
"sponsor_slug": sponsor.slug,
3940
"level_name": sponsorship.level_name,

0 commit comments

Comments
 (0)