|
|
|
@ -71,8 +71,8 @@ class Bookmark(models.Model): |
|
|
|
from apps.library.models import Book |
|
|
|
return Book.objects.filter(id=content_id).exists() |
|
|
|
elif service == cls.ServiceChoices.PODCAST: |
|
|
|
from apps.podcast.models import Podcast |
|
|
|
return Podcast.objects.filter(id=content_id).exists() |
|
|
|
from apps.podcast.models import Podcast, PodcastPlaylist |
|
|
|
return Podcast.objects.filter(id=content_id).exists() or PodcastPlaylist.objects.filter(id=content_id).exists() |
|
|
|
elif service == cls.ServiceChoices.PODCAST_PLAYLIST: |
|
|
|
from apps.podcast.models import PodcastPlaylist |
|
|
|
return PodcastPlaylist.objects.filter(id=content_id).exists() |
|
|
|
@ -83,8 +83,8 @@ class Bookmark(models.Model): |
|
|
|
from apps.hadis.models import HadisCorrection |
|
|
|
return HadisCorrection.objects.filter(id=content_id).exists() |
|
|
|
elif service == cls.ServiceChoices.VIDEO: |
|
|
|
from apps.video.models import Video |
|
|
|
return Video.objects.filter(id=content_id).exists() |
|
|
|
from apps.video.models import Video, VideoPlaylist |
|
|
|
return Video.objects.filter(id=content_id).exists() or VideoPlaylist.objects.filter(id=content_id).exists() |
|
|
|
elif service == cls.ServiceChoices.VIDEO_PLAYLIST: |
|
|
|
from apps.video.models import VideoPlaylist |
|
|
|
return VideoPlaylist.objects.filter(id=content_id).exists() |
|
|
|
|