mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-07-31 05:03:30 +00:00
allow media of all states to be added to playlist (#154)
This commit is contained in:
@ -1386,7 +1386,7 @@ class Playlist(models.Model):
|
||||
@property
|
||||
def thumbnail_url(self):
|
||||
pm = self.playlistmedia_set.first()
|
||||
if pm:
|
||||
if pm and pm.media.thumbnail:
|
||||
return helpers.url_from_path(pm.media.thumbnail.path)
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user