prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Option to post video in article
  Make it possible to post video in article from dashboard.
  
  
  </issue>
  <code>
  [start of apps/article/dashboard/forms.py]
  1 # -*- encoding: utf-8 -*-
  2 from django import forms
  3 
  4 from apps.article.models import Article
  5 from apps.dashboard.widgets import DatetimePickerInput, multiple_widget_generator
  6 from apps.gallery.widgets import SingleImageInput
  7 
  8 from taggit.forms import TagWidget
  9 
  10 
  11 class ArticleForm(forms.ModelForm):
  12 
  13     class Meta(object):
  14         """
  15         Add fields that should have DTP activated in the datetimepicker_fields list
  16         """
  17 
  18         model = Article
  19         fields = [
  20             'heading',
  21             'ingress_short',
  22             'ingress',
  23             'content',
  24             'image',
  25             'published_date',
  26             'authors',
  27             'tags',
  28             'featured'
  29         ]
  30 
  31         # Fields should be a mapping between field name and an attribute dictionary
  32         img_fields = [('image', {'id': 'responsive-image-id'})]
  33         dtp_fields = [('published_date', {})]
  34         widgetlist = [
  35             (DatetimePickerInput, dtp_fields),
  36             (SingleImageInput, img_fields)
  37         ]
  38 
  39         # Multiple widget generator merges results from regular widget_generator into a single widget dict
  40         widgets = multiple_widget_generator(widgetlist)
  41         widgets.update({'tags': TagWidget(attrs={'placeholder': 'Eksempel: åre, online, kjelleren'})})
  42         labels = {
  43             'tags': u'Tags'
  44         }
  45
  [end of apps/article/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/article/dashboard/forms.py b/apps/article/dashboard/forms.py
  --- a/apps/article/dashboard/forms.py
  +++ b/apps/article/dashboard/forms.py
  @@ -22,6 +22,7 @@
               'ingress',
               'content',
               'image',
  +            'video',
               'published_date',
               'authors',
               'tags',
  
verification_info: {"golden_diff": "diff --git a/apps/article/dashboard/forms.py b/apps/article/dashboard/forms.py\n--- a/apps/article/dashboard/forms.py\n+++ b/apps/article/dashboard/forms.py\n@@ -22,6 +22,7 @@\n             'ingress',\n             'content',\n             'image',\n+            'video',\n             'published_date',\n             'authors',\n             'tags',\n", "issue": "Option to post video in article\nMake it possible to post video in article from dashboard.\n\n", "before_files": [{"content": "# -*- encoding: utf-8 -*-\nfrom django import forms\n\nfrom apps.article.models import Article\nfrom apps.dashboard.widgets import DatetimePickerInput, multiple_widget_generator\nfrom apps.gallery.widgets import SingleImageInput\n\nfrom taggit.forms import TagWidget\n\n\nclass ArticleForm(forms.ModelForm):\n\n    class Meta(object):\n        \"\"\"\n        Add fields that should have DTP activated in the datetimepicker_fields list\n        \"\"\"\n\n        model = Article\n        fields = [\n            'heading',\n            'ingress_short',\n            'ingress',\n            'content',\n            'image',\n            'published_date',\n            'authors',\n            'tags',\n            'featured'\n        ]\n\n        # Fields should be a mapping between field name and an attribute dictionary\n        img_fields = [('image', {'id': 'responsive-image-id'})]\n        dtp_fields = [('published_date', {})]\n        widgetlist = [\n            (DatetimePickerInput, dtp_fields),\n            (SingleImageInput, img_fields)\n        ]\n\n        # Multiple widget generator merges results from regular widget_generator into a single widget dict\n        widgets = multiple_widget_generator(widgetlist)\n        widgets.update({'tags': TagWidget(attrs={'placeholder': 'Eksempel: \u00e5re, online, kjelleren'})})\n        labels = {\n            'tags': u'Tags'\n        }\n", "path": "apps/article/dashboard/forms.py"}]}