From d63e20aebc4da558c982d49e5621dafd0d995ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 7 Jan 2026 20:55:04 +0100 Subject: [PATCH] Use .twitch_id instead of .id --- templates/twitch/campaign_detail.html | 2 +- templates/twitch/campaign_list.html | 8 ++-- templates/twitch/channel_detail.html | 8 ++-- templates/twitch/channel_list.html | 4 +- templates/twitch/debug.html | 6 +-- templates/twitch/games_grid.html | 2 +- templates/twitch/games_list.html | 4 +- templates/twitch/org_list.html | 2 +- templates/twitch/organization_detail.html | 4 +- templates/twitch/search_results.html | 8 +++- twitch/views.py | 48 +++-------------------- 11 files changed, 32 insertions(+), 64 deletions(-) diff --git a/templates/twitch/campaign_detail.html b/templates/twitch/campaign_detail.html index 47d2e1d..0c13c02 100644 --- a/templates/twitch/campaign_detail.html +++ b/templates/twitch/campaign_detail.html @@ -130,7 +130,7 @@ {% for drop in drops %} - + {% for benefit in drop.drop.benefits.all %} {% if benefit.image_asset_url %} diff --git a/templates/twitch/campaign_list.html b/templates/twitch/campaign_list.html index c95e6eb..d6a2f42 100644 --- a/templates/twitch/campaign_list.html +++ b/templates/twitch/campaign_list.html @@ -25,9 +25,9 @@ @@ -80,7 +80,7 @@

{{ game_group.grouper.display_name|default:game_group.grouper.name|default:game_group.grouper.slug|default:game_group.grouper.id }} + style="text-decoration: none">{{ game_group.grouper.display_name|default:game_group.grouper.name|default:game_group.grouper.slug|default:game_group.grouper.twitch_id }}

{% comment %} Check if the owner exists and has a valid ID before creating the link {% endcomment %} {% if game_group.grouper.owner and game_group.grouper.owner.twitch_id %} diff --git a/templates/twitch/channel_detail.html b/templates/twitch/channel_detail.html index 52e923a..4bc4967 100644 --- a/templates/twitch/channel_detail.html +++ b/templates/twitch/channel_detail.html @@ -12,7 +12,7 @@ {% endif %}

- Channel ID: {{ channel.id }} + Channel ID: {{ channel.twitch_id }}

Added to database: @@ -50,7 +50,7 @@ {% if campaign.game %} - + {{ campaign.game.display_name|default:campaign.game.name }} {% else %} @@ -94,7 +94,7 @@ {% if campaign.game %} - + {{ campaign.game.display_name|default:campaign.game.name }} {% else %} @@ -138,7 +138,7 @@ {% if campaign.game %} - + {{ campaign.game.display_name|default:campaign.game.name }} {% else %} diff --git a/templates/twitch/channel_list.html b/templates/twitch/channel_list.html index e8e17e5..dba3bc9 100644 --- a/templates/twitch/channel_list.html +++ b/templates/twitch/channel_list.html @@ -32,9 +32,9 @@ {% for channel in channels %} - + - {{ channel.display_name }} {{ channel.name }} diff --git a/templates/twitch/debug.html b/templates/twitch/debug.html index ed75618..4375f4d 100644 --- a/templates/twitch/debug.html +++ b/templates/twitch/debug.html @@ -12,7 +12,7 @@ {% if games_without_owner %}