oops, YoutubeVideo
This commit is contained in:
parent
2da37fd3de
commit
149e34dc9f
|
@ -98,7 +98,7 @@ class ItfModel(models.Model):
|
|||
from mediagallery.models import YoutubeVideo
|
||||
|
||||
if self.galleries:
|
||||
qset = Youtube.objects.filter(album__in=self.galleries.all())
|
||||
qset = YoutubeVideo.objects.filter(album__in=self.galleries.all())
|
||||
if qset.count() == 0:
|
||||
return False
|
||||
return qset[0:9]
|
||||
|
|
Loading…
Reference in New Issue
Block a user