prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [dev/stage] auto-fill-in overwrites my bplan-name
  **URL:** https://meinberlin-stage.liqd.net/dashboard/projects/caro-testing-new-bplan-mail-2/bplan/
  **user:** initiator addin bplan
  **expected behaviour:** I can use autofill to add my mail-address
  **behaviour:** if I do so, the title of bplan is overwritten by my name but as it is far up the form I don't notice it.
  **important screensize:**
  **device & browser:** mac, chrome
  **Comment/Question:** is that even something we can influence?
  
  Screenshot?
  <img width="673" alt="Bildschirmfoto 2020-07-10 um 11 02 30" src="https://user-images.githubusercontent.com/35491681/87137579-6b0eaf80-c29d-11ea-928f-c888dc8eb430.png">
  <img width="673" alt="Bildschirmfoto 2020-07-10 um 11 06 10" src="https://user-images.githubusercontent.com/35491681/87137586-6cd87300-c29d-11ea-965d-74b4ecba8bc8.png">
  
  
  
  </issue>
  <code>
  [start of meinberlin/apps/bplan/forms.py]
  1 from django import forms
  2 
  3 from meinberlin.apps.extprojects.forms import ExternalProjectCreateForm
  4 from meinberlin.apps.extprojects.forms import ExternalProjectForm
  5 
  6 from . import models
  7 
  8 
  9 class StatementForm(forms.ModelForm):
  10     class Meta:
  11         model = models.Statement
  12         fields = ['name', 'email', 'statement',
  13                   'street_number', 'postal_code_city']
  14 
  15 
  16 class BplanProjectCreateForm(ExternalProjectCreateForm):
  17 
  18     class Meta:
  19         model = models.Bplan
  20         fields = ['name', 'description', 'tile_image', 'tile_image_copyright']
  21 
  22 
  23 class BplanProjectForm(ExternalProjectForm):
  24 
  25     class Meta:
  26         model = models.Bplan
  27         fields = ['name', 'identifier', 'url', 'description', 'tile_image',
  28                   'tile_image_copyright', 'is_archived', 'office_worker_email',
  29                   'start_date', 'end_date']
  30         required_for_project_publish = ['name', 'url', 'description',
  31                                         'office_worker_email']
  32
  [end of meinberlin/apps/bplan/forms.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/bplan/forms.py b/meinberlin/apps/bplan/forms.py
  --- a/meinberlin/apps/bplan/forms.py
  +++ b/meinberlin/apps/bplan/forms.py
  @@ -29,3 +29,9 @@
                     'start_date', 'end_date']
           required_for_project_publish = ['name', 'url', 'description',
                                           'office_worker_email']
  +
  +    def __init__(self, *args, **kwargs):
  +        super().__init__(*args, **kwargs)
  +        self.fields['name'].widget.attrs.update({
  +            'autocomplete': 'off', 'autofill': 'off'
  +        })
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/bplan/forms.py b/meinberlin/apps/bplan/forms.py\n--- a/meinberlin/apps/bplan/forms.py\n+++ b/meinberlin/apps/bplan/forms.py\n@@ -29,3 +29,9 @@\n                   'start_date', 'end_date']\n         required_for_project_publish = ['name', 'url', 'description',\n                                         'office_worker_email']\n+\n+    def __init__(self, *args, **kwargs):\n+        super().__init__(*args, **kwargs)\n+        self.fields['name'].widget.attrs.update({\n+            'autocomplete': 'off', 'autofill': 'off'\n+        })\n", "issue": "[dev/stage] auto-fill-in overwrites my bplan-name\n**URL:** https://meinberlin-stage.liqd.net/dashboard/projects/caro-testing-new-bplan-mail-2/bplan/\r\n**user:** initiator addin bplan\r\n**expected behaviour:** I can use autofill to add my mail-address\r\n**behaviour:** if I do so, the title of bplan is overwritten by my name but as it is far up the form I don't notice it.\r\n**important screensize:**\r\n**device & browser:** mac, chrome\r\n**Comment/Question:** is that even something we can influence?\r\n\r\nScreenshot?\r\n<img width=\"673\" alt=\"Bildschirmfoto 2020-07-10 um 11 02 30\" src=\"https://user-images.githubusercontent.com/35491681/87137579-6b0eaf80-c29d-11ea-928f-c888dc8eb430.png\">\r\n<img width=\"673\" alt=\"Bildschirmfoto 2020-07-10 um 11 06 10\" src=\"https://user-images.githubusercontent.com/35491681/87137586-6cd87300-c29d-11ea-965d-74b4ecba8bc8.png\">\r\n\r\n\n", "before_files": [{"content": "from django import forms\n\nfrom meinberlin.apps.extprojects.forms import ExternalProjectCreateForm\nfrom meinberlin.apps.extprojects.forms import ExternalProjectForm\n\nfrom . import models\n\n\nclass StatementForm(forms.ModelForm):\n    class Meta:\n        model = models.Statement\n        fields = ['name', 'email', 'statement',\n                  'street_number', 'postal_code_city']\n\n\nclass BplanProjectCreateForm(ExternalProjectCreateForm):\n\n    class Meta:\n        model = models.Bplan\n        fields = ['name', 'description', 'tile_image', 'tile_image_copyright']\n\n\nclass BplanProjectForm(ExternalProjectForm):\n\n    class Meta:\n        model = models.Bplan\n        fields = ['name', 'identifier', 'url', 'description', 'tile_image',\n                  'tile_image_copyright', 'is_archived', 'office_worker_email',\n                  'start_date', 'end_date']\n        required_for_project_publish = ['name', 'url', 'description',\n                                        'office_worker_email']\n", "path": "meinberlin/apps/bplan/forms.py"}]}