def get_gloss_videos(self): """Return a list of videos for a Gloss""" return GlossVideo.get_glosses_videos(self)
def handle(self, *args, **options): for gloss in Gloss.objects.all(): print gloss.id, GlossVideo.get_glosses_videos(gloss)