From de728ed46376802ddcd23df9d00b4de27fdd296b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Wed, 17 Jul 2024 13:43:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Update=20`SourceType`?= =?UTF-8?q?=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._alter_youtubetrafficsource_source_type.py | 45 +++++++++++++++++++ okr/models/youtube.py | 7 ++- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 okr/migrations/0087_alter_youtubetrafficsource_source_type.py diff --git a/okr/migrations/0087_alter_youtubetrafficsource_source_type.py b/okr/migrations/0087_alter_youtubetrafficsource_source_type.py new file mode 100644 index 0000000..d37bfc1 --- /dev/null +++ b/okr/migrations/0087_alter_youtubetrafficsource_source_type.py @@ -0,0 +1,45 @@ +# Generated by Django 4.2.5 on 2024-07-17 11:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("okr", "0086_alter_youtubetrafficsource_source_type_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="youtubetrafficsource", + name="source_type", + field=models.CharField( + choices=[ + ("advertising", "Werbung"), + ("annotation", "Annotation"), + ("campaign_card", "Kampagnenkarte"), + ("end_screen", "Endscreen"), + ("ext_url", "Externe URL"), + ("hashtags", "Hashtags"), + ("live_redirect", "Live-Weiterleitung"), + ("no_link_embedded", "Kein Link (eingebettet)"), + ("no_link_other", "Kein Link (sonstiges)"), + ("notification", "Benachrichtigung"), + ("playlist", "Playlist"), + ("product_page", "Produktseite"), + ("promoted", "Promoted"), + ("related_video", "Related"), + ("shorts", "Shorts"), + ("sound_page", "Soundpage"), + ("subscriber", "Abonnent*in"), + ("yt_channel", "Youtube-Kanal"), + ("yt_other_page", "Sonstige Youtube-Seite"), + ("yt_search", "Youtube-Suche"), + ("video_remixes", "Video-Remixes"), + ("yt_playlist_page", "Youtube Playlist-Seite"), + ("shorts_content_links", "Shorts Content Links"), + ], + max_length=40, + verbose_name="Source Type", + ), + ), + ] diff --git a/okr/models/youtube.py b/okr/models/youtube.py index 5d7a1c8..d837f18 100644 --- a/okr/models/youtube.py +++ b/okr/models/youtube.py @@ -164,10 +164,13 @@ class SourceType(models.TextChoices): CAMPAIGN_CARD = "campaign_card", "Kampagnenkarte" END_SCREEN = "end_screen", "Endscreen" EXT_URL = "ext_url", "Externe URL" + HASHTAGS = "hashtags", "Hashtags" + LIVE_REDIRECT = "live_redirect", "Live-Weiterleitung" NO_LINK_EMBEDDED = "no_link_embedded", "Kein Link (eingebettet)" NO_LINK_OTHER = "no_link_other", "Kein Link (sonstiges)" NOTIFICATION = "notification", "Benachrichtigung" PLAYLIST = "playlist", "Playlist" + PRODUCT_PAGE = "product_page", "Produktseite" PROMOTED = "promoted", "Promoted" RELATED_VIDEO = "related_video", "Related" SHORTS = "shorts", "Shorts" @@ -175,9 +178,9 @@ class SourceType(models.TextChoices): SUBSCRIBER = "subscriber", "Abonnent*in" YT_CHANNEL = "yt_channel", "Youtube-Kanal" YT_OTHER_PAGE = "yt_other_page", "Sonstige Youtube-Seite" - YT_PLAYLIST_PAGE = "yt_playlist_page", "Youtube Playlist-Seite" YT_SEARCH = "yt_search", "Youtube-Suche" - HASHTAGS = "hashtags", "Hashtags" + VIDEO_REMIXES = "video_remixes", "Video-Remixes" + YT_PLAYLIST_PAGE = "yt_playlist_page", "Youtube Playlist-Seite" SHORTS_CONTENT_LINKS = ( "shorts_content_links", "Shorts Content Links",