prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  2 link limit on nav items
  affects the footer, need more than 2 items 
  
  </issue>
  <code>
  [start of meinberlin/apps/cms/models/navigation_menues.py]
  1 from django.db import models
  2 from modelcluster.fields import ParentalKey
  3 from modelcluster.models import ClusterableModel
  4 from wagtail.admin import edit_handlers
  5 from wagtail.core.models import Orderable
  6 from wagtail.snippets.models import register_snippet
  7 
  8 
  9 class MenuItem(models.Model):
  10     title = models.CharField(max_length=255)
  11     link_page = models.ForeignKey('wagtailcore.Page')
  12 
  13     @property
  14     def url(self):
  15         return self.link_page.url
  16 
  17     def __str__(self):
  18         return self.title
  19 
  20     panels = [
  21         edit_handlers.FieldPanel('title'),
  22         edit_handlers.PageChooserPanel('link_page')
  23     ]
  24 
  25 
  26 @register_snippet
  27 class NavigationMenu(ClusterableModel):
  28     title = models.CharField(max_length=255, null=False, blank=False)
  29 
  30     def __str__(self):
  31         return self.title
  32 
  33     panels = [
  34         edit_handlers.FieldPanel('title'),
  35         edit_handlers.InlinePanel('items', max_num=2)
  36     ]
  37 
  38 
  39 class NavigationMenuItem(Orderable, MenuItem):
  40     parent = ParentalKey('meinberlin_cms.NavigationMenu', related_name='items')
  41
  [end of meinberlin/apps/cms/models/navigation_menues.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/meinberlin/apps/cms/models/navigation_menues.py b/meinberlin/apps/cms/models/navigation_menues.py
  --- a/meinberlin/apps/cms/models/navigation_menues.py
  +++ b/meinberlin/apps/cms/models/navigation_menues.py
  @@ -32,7 +32,7 @@
   
       panels = [
           edit_handlers.FieldPanel('title'),
  -        edit_handlers.InlinePanel('items', max_num=2)
  +        edit_handlers.InlinePanel('items')
       ]
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/cms/models/navigation_menues.py b/meinberlin/apps/cms/models/navigation_menues.py\n--- a/meinberlin/apps/cms/models/navigation_menues.py\n+++ b/meinberlin/apps/cms/models/navigation_menues.py\n@@ -32,7 +32,7 @@\n \n     panels = [\n         edit_handlers.FieldPanel('title'),\n-        edit_handlers.InlinePanel('items', max_num=2)\n+        edit_handlers.InlinePanel('items')\n     ]\n", "issue": "2 link limit on nav items\naffects the footer, need more than 2 items \n", "before_files": [{"content": "from django.db import models\nfrom modelcluster.fields import ParentalKey\nfrom modelcluster.models import ClusterableModel\nfrom wagtail.admin import edit_handlers\nfrom wagtail.core.models import Orderable\nfrom wagtail.snippets.models import register_snippet\n\n\nclass MenuItem(models.Model):\n    title = models.CharField(max_length=255)\n    link_page = models.ForeignKey('wagtailcore.Page')\n\n    @property\n    def url(self):\n        return self.link_page.url\n\n    def __str__(self):\n        return self.title\n\n    panels = [\n        edit_handlers.FieldPanel('title'),\n        edit_handlers.PageChooserPanel('link_page')\n    ]\n\n\n@register_snippet\nclass NavigationMenu(ClusterableModel):\n    title = models.CharField(max_length=255, null=False, blank=False)\n\n    def __str__(self):\n        return self.title\n\n    panels = [\n        edit_handlers.FieldPanel('title'),\n        edit_handlers.InlinePanel('items', max_num=2)\n    ]\n\n\nclass NavigationMenuItem(Orderable, MenuItem):\n    parent = ParentalKey('meinberlin_cms.NavigationMenu', related_name='items')\n", "path": "meinberlin/apps/cms/models/navigation_menues.py"}]}