From 7b4e597cde92d7380637692c92d18aa1883e8939 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Fri, 2 May 2025 09:48:00 -0400 Subject: [PATCH] add sponsorship id to sponsor list api endpoint this will be useful to make the sync more reliable to link via id not string --- sponsors/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sponsors/api.py b/sponsors/api.py index c5a8173ab..e5ef245df 100644 --- a/sponsors/api.py +++ b/sponsors/api.py @@ -34,6 +34,7 @@ def get(self, request, *args, **kwargs): for sponsorship in sponsorships.select_related("sponsor").iterator(): sponsor = sponsorship.sponsor base_data = { + "sponsor_id": sponsor.id, "sponsor": sponsor.name, "sponsor_slug": sponsor.slug, "level_name": sponsorship.level_name,