prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Increase max limit for the chains endpoint
  
  
  </issue>
  <code>
  [start of src/chains/views.py]
  1 from rest_framework import filters
  2 from rest_framework.generics import ListAPIView, RetrieveAPIView
  3 from rest_framework.pagination import LimitOffsetPagination
  4 
  5 from .models import Chain
  6 from .serializers import ChainSerializer
  7 
  8 
  9 class ChainsListView(ListAPIView):
  10     serializer_class = ChainSerializer
  11     pagination_class = LimitOffsetPagination
  12     pagination_class.max_limit = 10
  13     pagination_class.default_limit = 10
  14     queryset = Chain.objects.all()
  15     filter_backends = [filters.OrderingFilter]
  16     ordering_fields = ["relevance", "name"]
  17     ordering = [
  18         "relevance",
  19         "name",
  20     ]
  21 
  22 
  23 class ChainsDetailView(RetrieveAPIView):
  24     serializer_class = ChainSerializer
  25     queryset = Chain.objects.all()
  26
  [end of src/chains/views.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/src/chains/views.py b/src/chains/views.py
  --- a/src/chains/views.py
  +++ b/src/chains/views.py
  @@ -9,7 +9,7 @@
   class ChainsListView(ListAPIView):
       serializer_class = ChainSerializer
       pagination_class = LimitOffsetPagination
  -    pagination_class.max_limit = 10
  +    pagination_class.max_limit = 100
       pagination_class.default_limit = 10
       queryset = Chain.objects.all()
       filter_backends = [filters.OrderingFilter]
  
verification_info: {"golden_diff": "diff --git a/src/chains/views.py b/src/chains/views.py\n--- a/src/chains/views.py\n+++ b/src/chains/views.py\n@@ -9,7 +9,7 @@\n class ChainsListView(ListAPIView):\n     serializer_class = ChainSerializer\n     pagination_class = LimitOffsetPagination\n-    pagination_class.max_limit = 10\n+    pagination_class.max_limit = 100\n     pagination_class.default_limit = 10\n     queryset = Chain.objects.all()\n     filter_backends = [filters.OrderingFilter]\n", "issue": "Increase max limit for the chains endpoint\n\n", "before_files": [{"content": "from rest_framework import filters\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView\nfrom rest_framework.pagination import LimitOffsetPagination\n\nfrom .models import Chain\nfrom .serializers import ChainSerializer\n\n\nclass ChainsListView(ListAPIView):\n    serializer_class = ChainSerializer\n    pagination_class = LimitOffsetPagination\n    pagination_class.max_limit = 10\n    pagination_class.default_limit = 10\n    queryset = Chain.objects.all()\n    filter_backends = [filters.OrderingFilter]\n    ordering_fields = [\"relevance\", \"name\"]\n    ordering = [\n        \"relevance\",\n        \"name\",\n    ]\n\n\nclass ChainsDetailView(RetrieveAPIView):\n    serializer_class = ChainSerializer\n    queryset = Chain.objects.all()\n", "path": "src/chains/views.py"}]}