from django.shortcuts import render
from django.views.generic import ListView

from main.models import Video


class UploadingListView(ListView):
    template_name = 'video_state/list.html'
    context_object_name = 'videos'
    model = Video

    def get_queryset(self):
        videos = self.model.objects.exclude(
            state='완료'
        )
        return videos
