from django.http import HttpResponse
from rest_framework import generics
from rest_framework.response import Response
from .models import subject
from .serializers import subjectSerializer


class routinedata(generics.ListAPIView):

    def get_queryset(self):
        dayvalue = self.kwargs['dayvalue']
        periodvalue = self.kwargs['periodvalue']
        return subject.objects.filter(day__dayname__exact=dayvalue,
            period__periodname__exact=periodvalue)
    serializer_class = subjectSerializer

07806d52aaaa5085d144a73551c717ffe0c54df3
<mask token>


class routinedata(generics.ListAPIView):
    <mask token>
    <mask token>

<mask token>


class routinedata(generics.ListAPIView):

    def get_queryset(self):
        dayvalue = self.kwargs['dayvalue']
        periodvalue = self.kwargs['periodvalue']
        return subject.objects.filter(day__dayname__exact=dayvalue,
            period__periodname__exact=periodvalue)
    <mask token>

<mask token>


class routinedata(generics.ListAPIView):

    def get_queryset(self):
        dayvalue = self.kwargs['dayvalue']
        periodvalue = self.kwargs['periodvalue']
        return subject.objects.filter(day__dayname__exact=dayvalue,
            period__periodname__exact=periodvalue)
    serializer_class = subjectSerializer

from django.http import HttpResponse
from rest_framework import generics
from rest_framework.response import Response
from .models import subject
from .serializers import subjectSerializer


class routinedata(generics.ListAPIView):

    def get_queryset(self):
        dayvalue = self.kwargs['dayvalue']
        periodvalue = self.kwargs['periodvalue']
        return subject.objects.filter(day__dayname__exact=dayvalue,
            period__periodname__exact=periodvalue)
    serializer_class = subjectSerializer
