Skip to content

Commit 595b558

Browse files
authored
add sponsorship id to sponsor list api endpoint (#2720)
this will be useful to make the sync more reliable to link via id not string
1 parent f58149c commit 595b558

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy