Added some LINK_DOMAINS. #50
This commit is contained in:
parent
056d937f15
commit
a37a445986
@ -8,9 +8,14 @@ LINK_TYPES = (
|
|||||||
('vimeo', "Vimeo"),
|
('vimeo', "Vimeo"),
|
||||||
('flickr', 'Flickr'),
|
('flickr', 'Flickr'),
|
||||||
('googlephotos', "Google Photos"),
|
('googlephotos', "Google Photos"),
|
||||||
('photoalbum', "Photo album")
|
('photoalbum', "Photo album"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
LINK_DOMAINS = {
|
||||||
|
'youtu.be': 'youtube',
|
||||||
|
'y2u.be': 'youtube',
|
||||||
|
}
|
||||||
|
|
||||||
class ExternalLink(PlaceAsset):
|
class ExternalLink(PlaceAsset):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user