Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_list_stream_videos(self):
return Video.objects.filter(
courses__course_id=self.location.course_key,
courses__is_hidden=False,
status__in=["file_complete", "file_encrypted"]
).order_by('-created', 'edx_video_id')