prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Links to company websites doesn't work without http:// 
  On a company profile page the link to the company's website will only redirect the user if `http://` is specified when the link is added in the dashboard. For example, the link to AppearTV is written as `www.appeartv.com`, and redirects to `https://online.ntnu.no/company/60/www.appeartv.com`.
  There is no information to the user creating an event to add http either, so I can imagine this being a growing problem. 
  
  Links to company websites doesn't work without http:// 
  On a company profile page the link to the company's website will only redirect the user if `http://` is specified when the link is added in the dashboard. For example, the link to AppearTV is written as `www.appeartv.com`, and redirects to `https://online.ntnu.no/company/60/www.appeartv.com`.
  There is no information to the user creating an event to add http either, so I can imagine this being a growing problem. 
  
  
  </issue>
  <code>
  [start of apps/companyprofile/dashboard/forms.py]
  1 # -*- coding: utf-8 -*-
  2 from django.forms import ModelForm
  3 
  4 from apps.companyprofile.models import Company
  5 from apps.dashboard.widgets import widget_generator
  6 from apps.gallery.widgets import SingleImageInput
  7 
  8 
  9 class CompanyForm(ModelForm):
  10 
  11     class Meta(object):
  12         model = Company
  13         fields = ('name', 'short_description', 'long_description', 'image', 'site', 'email_address', 'phone_number',)
  14         exclude = ['old_image']
  15 
  16         # Widget generator accepts a form widget, and a list of tuples between field name and an attribute dict
  17         widgets = widget_generator(SingleImageInput, [('image', {'id': 'responsive-image-id'})])
  18
  [end of apps/companyprofile/dashboard/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/apps/companyprofile/dashboard/forms.py b/apps/companyprofile/dashboard/forms.py
  --- a/apps/companyprofile/dashboard/forms.py
  +++ b/apps/companyprofile/dashboard/forms.py
  @@ -1,5 +1,6 @@
   # -*- coding: utf-8 -*-
   from django.forms import ModelForm
  +from django.forms.fields import URLField
   
   from apps.companyprofile.models import Company
   from apps.dashboard.widgets import widget_generator
  @@ -7,10 +8,12 @@
   
   
   class CompanyForm(ModelForm):
  +    site = URLField(max_length=100)
   
       class Meta(object):
           model = Company
           fields = ('name', 'short_description', 'long_description', 'image', 'site', 'email_address', 'phone_number',)
  +
           exclude = ['old_image']
   
           # Widget generator accepts a form widget, and a list of tuples between field name and an attribute dict
  
verification_info: {"golden_diff": "diff --git a/apps/companyprofile/dashboard/forms.py b/apps/companyprofile/dashboard/forms.py\n--- a/apps/companyprofile/dashboard/forms.py\n+++ b/apps/companyprofile/dashboard/forms.py\n@@ -1,5 +1,6 @@\n # -*- coding: utf-8 -*-\n from django.forms import ModelForm\n+from django.forms.fields import URLField\n \n from apps.companyprofile.models import Company\n from apps.dashboard.widgets import widget_generator\n@@ -7,10 +8,12 @@\n \n \n class CompanyForm(ModelForm):\n+    site = URLField(max_length=100)\n \n     class Meta(object):\n         model = Company\n         fields = ('name', 'short_description', 'long_description', 'image', 'site', 'email_address', 'phone_number',)\n+\n         exclude = ['old_image']\n \n         # Widget generator accepts a form widget, and a list of tuples between field name and an attribute dict\n", "issue": "Links to company websites doesn't work without http:// \nOn a company profile page the link to the company's website will only redirect the user if `http://` is specified when the link is added in the dashboard. For example, the link to AppearTV is written as `www.appeartv.com`, and redirects to `https://online.ntnu.no/company/60/www.appeartv.com`.\nThere is no information to the user creating an event to add http either, so I can imagine this being a growing problem. \n\nLinks to company websites doesn't work without http:// \nOn a company profile page the link to the company's website will only redirect the user if `http://` is specified when the link is added in the dashboard. For example, the link to AppearTV is written as `www.appeartv.com`, and redirects to `https://online.ntnu.no/company/60/www.appeartv.com`.\nThere is no information to the user creating an event to add http either, so I can imagine this being a growing problem. \n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nfrom django.forms import ModelForm\n\nfrom apps.companyprofile.models import Company\nfrom apps.dashboard.widgets import widget_generator\nfrom apps.gallery.widgets import SingleImageInput\n\n\nclass CompanyForm(ModelForm):\n\n    class Meta(object):\n        model = Company\n        fields = ('name', 'short_description', 'long_description', 'image', 'site', 'email_address', 'phone_number',)\n        exclude = ['old_image']\n\n        # Widget generator accepts a form widget, and a list of tuples between field name and an attribute dict\n        widgets = widget_generator(SingleImageInput, [('image', {'id': 'responsive-image-id'})])\n", "path": "apps/companyprofile/dashboard/forms.py"}]}