From a37a445986ba598a835265540ce96f81555617f5 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 2 Oct 2021 06:00:25 +0200 Subject: [PATCH] Added some LINK_DOMAINS. #50 --- django_lostplaces/lostplaces/models/external_links.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models/external_links.py b/django_lostplaces/lostplaces/models/external_links.py index dda03de..1d126ff 100644 --- a/django_lostplaces/lostplaces/models/external_links.py +++ b/django_lostplaces/lostplaces/models/external_links.py @@ -8,9 +8,14 @@ LINK_TYPES = ( ('vimeo', "Vimeo"), ('flickr', 'Flickr'), ('googlephotos', "Google Photos"), - ('photoalbum', "Photo album") + ('photoalbum', "Photo album"), ) +LINK_DOMAINS = { + 'youtu.be': 'youtube', + 'y2u.be': 'youtube', +} + class ExternalLink(PlaceAsset): class Meta: