from .models import Birthday, get_birthdays
from django.conf import settings
from django.core import serializers
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404, render
from django.utils.decorators import method_decorator
from django.utils.timezone import now
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
import json
import time
import datetime

class list(View):
    def get(self, request, *args, **kwargs):
        return HttpResponse(json.dumps(get_birthdays(kwargs.get("date"))), content_type="application/json")

@@ -16,18 +16,8 @@
 port
- Birthday,
  get
@@ -43,322 +43,32 @@
 ngo.
-conf import settings%0Afrom django.core import serializers%0Afrom django.http import HttpResponseRedirect, HttpResponse%0Afrom django.shortcuts import get_object_or_404, render%0Afrom django.utils.decorators import method_decorator%0Afrom django.utils.timezone import now%0Afrom django.views.decorators.csrf import csrf_exempt
+http import HttpResponse
 %0Afro
@@ -117,36 +117,8 @@
 json
-%0Aimport time%0Aimport datetime
 %0A%0Acl

Clean up unnecessary imports