#50 Added (new) link types.
This commit is contained in:
parent
72bfc97fbd
commit
e14ed52eeb
@ -3,6 +3,14 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
|
|
||||||
from lostplaces.models.place import PlaceAsset
|
from lostplaces.models.place import PlaceAsset
|
||||||
|
|
||||||
|
LINK_TYPES = (
|
||||||
|
('youtube', 'YouTube'),
|
||||||
|
('vimeo', "Vimeo"),
|
||||||
|
('flickr', 'Flickr'),
|
||||||
|
('googlephotos', "Google Photos"),
|
||||||
|
('photoalbum', "Photo album")
|
||||||
|
)
|
||||||
|
|
||||||
class ExternalLink(PlaceAsset):
|
class ExternalLink(PlaceAsset):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
@ -17,6 +25,7 @@ class ExternalLink(PlaceAsset):
|
|||||||
verbose_name=_('link text')
|
verbose_name=_('link text')
|
||||||
)
|
)
|
||||||
linktype = models.CharField(
|
linktype = models.CharField(
|
||||||
|
choices=LINK_TYPES,
|
||||||
max_length=20,
|
max_length=20,
|
||||||
verbose_name=_('link type'),
|
verbose_name=_('link type'),
|
||||||
blank=True,
|
blank=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user