Skip to content

Commit

Permalink
👽️ Update SourceType options
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Jul 17, 2024
1 parent 15e3aea commit de728ed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
45 changes: 45 additions & 0 deletions okr/migrations/0087_alter_youtubetrafficsource_source_type.py
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
7 changes: 5 additions & 2 deletions okr/models/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,23 @@ 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"
SOUND_PAGE = "sound_page", "Soundpage"
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",
Expand Down

0 comments on commit de728ed

Please sign in to comment.