Refactor game ownership to support multiple organizations and update related logic

This commit is contained in:
Joakim Hellsén 2026-01-09 21:57:37 +01:00
commit 99e7b40535
No known key found for this signature in database
10 changed files with 99 additions and 64 deletions

View file

@ -654,7 +654,7 @@ class OrganizationCampaignFeed(Feed):
"""Return the latest 100 drop campaigns for this organization, ordered by most recently added."""
return list(
DropCampaign.objects
.filter(game__owner=obj, operation_name="DropCampaignDetails")
.filter(game__owners=obj, operation_name="DropCampaignDetails")
.select_related("game")
.order_by("-added_at")[:100],
)