prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  #3491 [mB] add video embed to interactive event 
  **URL:** https://meinberlin-dev.liqd.net/projekte/design-project/
  **device & browser:** *Safari Version 14.0 (15610.1.28.1.9, 15610)*
  **Comment/Question:** 
  *Just to confirm, the live stream field should appear just when the project is published? Cause, I can't select the live stream section before being published, otherwise all good*  
  
  <img width="1361" alt="Screenshot 2020-11-10 at 16 03 41" src="https://user-images.githubusercontent.com/59610786/98691968-e462ff80-236e-11eb-904b-755ff83b79cc.png">
  <img width="1389" alt="Screenshot 2020-11-10 at 16 04 07" src="https://user-images.githubusercontent.com/59610786/98691978-e7f68680-236e-11eb-9a18-53ade0537fa8.png">
  <img width="1330" alt="Screenshot 2020-11-10 at 16 04 24" src="https://user-images.githubusercontent.com/59610786/98691980-e927b380-236e-11eb-88a8-ad2c644e58df.png">
  
  
  
  </issue>
  <code>
  [start of meinberlin/apps/livequestions/dashboard.py]
  1 from django.urls import reverse
  2 from django.utils.translation import ugettext_lazy as _
  3 
  4 from adhocracy4.dashboard import DashboardComponent
  5 from adhocracy4.dashboard import components
  6 
  7 from . import views
  8 
  9 
  10 class LiveStreamComponent(DashboardComponent):
  11     identifier = 'live_stream'
  12     weight = 20
  13     label = _('Live Stream')
  14 
  15     def is_effective(self, module):
  16         module_app = module.phases[0].content().app
  17         return (module_app == 'meinberlin_livequestions' and
  18                 not module.project.is_draft)
  19 
  20     def get_progress(self, module):
  21         return 0, 0
  22 
  23     def get_base_url(self, module):
  24         return reverse('a4dashboard:livequestions-livestream', kwargs={
  25             'module_slug': module.slug,
  26         })
  27 
  28     def get_urls(self):
  29         return [(
  30             r'^modules/(?P<module_slug>[-\w_]+)/livestream/$',
  31             views.LiveStreamDashboardView.as_view(component=self),
  32             'livequestions-livestream'
  33         )]
  34 
  35 
  36 components.register_module(LiveStreamComponent())
  37
  [end of meinberlin/apps/livequestions/dashboard.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/livequestions/dashboard.py b/meinberlin/apps/livequestions/dashboard.py
  --- a/meinberlin/apps/livequestions/dashboard.py
  +++ b/meinberlin/apps/livequestions/dashboard.py
  @@ -14,8 +14,7 @@
   
       def is_effective(self, module):
           module_app = module.phases[0].content().app
  -        return (module_app == 'meinberlin_livequestions' and
  -                not module.project.is_draft)
  +        return (module_app == 'meinberlin_livequestions')
   
       def get_progress(self, module):
           return 0, 0
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/livequestions/dashboard.py b/meinberlin/apps/livequestions/dashboard.py\n--- a/meinberlin/apps/livequestions/dashboard.py\n+++ b/meinberlin/apps/livequestions/dashboard.py\n@@ -14,8 +14,7 @@\n \n     def is_effective(self, module):\n         module_app = module.phases[0].content().app\n-        return (module_app == 'meinberlin_livequestions' and\n-                not module.project.is_draft)\n+        return (module_app == 'meinberlin_livequestions')\n \n     def get_progress(self, module):\n         return 0, 0\n", "issue": "#3491 [mB] add video embed to interactive event \n**URL:** https://meinberlin-dev.liqd.net/projekte/design-project/\r\n**device & browser:** *Safari Version 14.0 (15610.1.28.1.9, 15610)*\r\n**Comment/Question:** \r\n*Just to confirm, the live stream field should appear just when the project is published? Cause, I can't select the live stream section before being published, otherwise all good*  \r\n\r\n<img width=\"1361\" alt=\"Screenshot 2020-11-10 at 16 03 41\" src=\"https://user-images.githubusercontent.com/59610786/98691968-e462ff80-236e-11eb-904b-755ff83b79cc.png\">\r\n<img width=\"1389\" alt=\"Screenshot 2020-11-10 at 16 04 07\" src=\"https://user-images.githubusercontent.com/59610786/98691978-e7f68680-236e-11eb-9a18-53ade0537fa8.png\">\r\n<img width=\"1330\" alt=\"Screenshot 2020-11-10 at 16 04 24\" src=\"https://user-images.githubusercontent.com/59610786/98691980-e927b380-236e-11eb-88a8-ad2c644e58df.png\">\r\n\r\n\n", "before_files": [{"content": "from django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import views\n\n\nclass LiveStreamComponent(DashboardComponent):\n    identifier = 'live_stream'\n    weight = 20\n    label = _('Live Stream')\n\n    def is_effective(self, module):\n        module_app = module.phases[0].content().app\n        return (module_app == 'meinberlin_livequestions' and\n                not module.project.is_draft)\n\n    def get_progress(self, module):\n        return 0, 0\n\n    def get_base_url(self, module):\n        return reverse('a4dashboard:livequestions-livestream', kwargs={\n            'module_slug': module.slug,\n        })\n\n    def get_urls(self):\n        return [(\n            r'^modules/(?P<module_slug>[-\\w_]+)/livestream/$',\n            views.LiveStreamDashboardView.as_view(component=self),\n            'livequestions-livestream'\n        )]\n\n\ncomponents.register_module(LiveStreamComponent())\n", "path": "meinberlin/apps/livequestions/dashboard.py"}]}