from django.http import HttpResponse
from django.shortcuts import render
from rest_framework.response import Response
from rest_framework import viewsets
from quickstart.serializers import QuoteSerializer
from quickstart.models import Quote

class QuoteViewSet(viewsets.ModelViewSet):
    """
    API endpoint that allows quotes to be viewed.
    """
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer

def random_quote(self):
    quotes = Quote.objects.order_by('?').first()
    return HttpResponse(quotes)

def zach_wants_to_know(self):
    return HttpResponse("gotcha")
312b8d49c2e7efbf7d6c6a13531ae7d55fb64d2f
<mask token>


class QuoteViewSet(viewsets.ModelViewSet):
    <mask token>
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer


<mask token>

<mask token>


class QuoteViewSet(viewsets.ModelViewSet):
    """
    API endpoint that allows quotes to be viewed.
    """
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer


<mask token>


def zach_wants_to_know(self):
    return HttpResponse('gotcha')

<mask token>


class QuoteViewSet(viewsets.ModelViewSet):
    """
    API endpoint that allows quotes to be viewed.
    """
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer


def random_quote(self):
    quotes = Quote.objects.order_by('?').first()
    return HttpResponse(quotes)


def zach_wants_to_know(self):
    return HttpResponse('gotcha')

from django.http import HttpResponse
from django.shortcuts import render
from rest_framework.response import Response
from rest_framework import viewsets
from quickstart.serializers import QuoteSerializer
from quickstart.models import Quote


class QuoteViewSet(viewsets.ModelViewSet):
    """
    API endpoint that allows quotes to be viewed.
    """
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer


def random_quote(self):
    quotes = Quote.objects.order_by('?').first()
    return HttpResponse(quotes)


def zach_wants_to_know(self):
    return HttpResponse('gotcha')

from django.http import HttpResponse
from django.shortcuts import render
from rest_framework.response import Response
from rest_framework import viewsets
from quickstart.serializers import QuoteSerializer
from quickstart.models import Quote

class QuoteViewSet(viewsets.ModelViewSet):
    """
    API endpoint that allows quotes to be viewed.
    """
    queryset = Quote.objects.all()
    serializer_class = QuoteSerializer

def random_quote(self):
    quotes = Quote.objects.order_by('?').first()
    return HttpResponse(quotes)

def zach_wants_to_know(self):
    return HttpResponse("gotcha")