We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
poll-comment export seems to be broken
```
Environment:


Request Method: GET
Request URL: http://localhost:8004/liqd-orga/dashboard/modules/umfrage/poll/export/

Django Version: 2.2.6
Python Version: 3.7.3
Installed Applications:
('django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sitemaps',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'widget_tweaks',
 'rest_framework',
 'allauth',
 'allauth.account',
 'allauth.socialaccount',
 'rules.apps.AutodiscoverRulesConfig',
 'easy_thumbnails',
 'ckeditor',
 'ckeditor_uploader',
 'capture_tag',
 'background_task',
 'wagtail.contrib.forms',
 'wagtail.contrib.redirects',
 'wagtail.contrib.settings',
 'wagtail.contrib.styleguide',
 'wagtail.embeds',
 'wagtail.sites',
 'wagtail.users',
 'wagtail.snippets',
 'wagtail.documents',
 'wagtail.images',
 'wagtail.search',
 'wagtail.admin',
 'wagtail.core',
 'modelcluster',
 'taggit',
 'apps.cms.pages',
 'apps.cms.settings',
 'apps.cms.contacts',
 'apps.cms.news',
 'apps.cms.use_cases',
 'apps.cms.images',
 'adhocracy4.actions',
 'adhocracy4.administrative_districts',
 'adhocracy4.categories',
 'adhocracy4.ckeditor',
 'adhocracy4.comments',
 'adhocracy4.dashboard',
 'adhocracy4.filters',
 'adhocracy4.follows',
 'adhocracy4.forms',
 'adhocracy4.images',
 'adhocracy4.labels',
 'adhocracy4.maps',
 'adhocracy4.modules',
 'adhocracy4.organisations',
 'adhocracy4.phases',
 'adhocracy4.projects',
 'adhocracy4.ratings',
 'adhocracy4.reports',
 'adhocracy4.rules',
 'apps.actions',
 'apps.contrib',
 'apps.likes',
 'apps.maps',
 'apps.moderatorfeedback',
 'apps.moderatorremark',
 'apps.newsletters',
 'apps.notifications',
 'apps.organisations',
 'apps.partners',
 'apps.questions',
 'apps.users',
 'apps.account',
 'apps.dashboard',
 'apps.embed',
 'apps.exports',
 'apps.offlineevents',
 'apps.projects',
 'apps.activities',
 'apps.budgeting',
 'apps.documents',
 'apps.ideas',
 'apps.mapideas',
 'apps.polls',
 'allauth.socialaccount.providers.facebook',
 'allauth.socialaccount.providers.github',
 'allauth.socialaccount.providers.google',
 'allauth.socialaccount.providers.twitter')
Installed Middleware:
('django.middleware.security.SecurityMiddleware',
 'whitenoise.middleware.WhiteNoiseMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django_cloudflare_push.middleware.push_middleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'apps.embed.middleware.AjaxPathMiddleware',
 'wagtail.core.middleware.SiteMiddleware',
 'wagtail.contrib.redirects.middleware.RedirectMiddleware')



Traceback:

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/contrib/auth/mixins.py" in dispatch
  85.         return super().dispatch(request, *args, **kwargs)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
  97.         return handler(request, *args, **kwargs)

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py" in get
  158.         context = self.get_context_data(**kwargs)

File "/home/katharina/a4-product/apps/polls/views.py" in get_context_data
  84.             kwargs={'module_slug': self.module.slug})

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/urls/base.py" in reverse
  90.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))

File "/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/urls/resolvers.py" in _reverse_with_prefix
  673.         raise NoReverseMatch(msg)

Exception Type: NoReverseMatch at /liqd-orga/dashboard/modules/umfrage/poll/export/
Exception Value: Reverse for 'poll-comment-export' with keyword arguments '{'module_slug': 'umfrage'}' not found. 1 pattern(s) tried: ['(?P<organisation_slug>[-\\w_]+)/dashboard/modules/(?P<module_slug>[-\\w_]+)/poll/export/comments/$']
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `apps/polls/views.py`
Content:
```
1 from django.http import Http404
2 from django.shortcuts import get_object_or_404
3 from django.shortcuts import render_to_response
4 from django.urls import reverse
5 from django.views import generic
6 
7 from adhocracy4.dashboard import mixins as dashboard_mixins
8 from adhocracy4.projects.mixins import DisplayProjectOrModuleMixin
9 from adhocracy4.projects.mixins import ProjectMixin
10 from adhocracy4.rules import mixins as rules_mixins
11 from apps.exports.views import DashboardExportView
12 
13 from . import models
14 
15 
16 class PollDetailView(ProjectMixin,
17                      rules_mixins.PermissionRequiredMixin,
18                      generic.DetailView,
19                      DisplayProjectOrModuleMixin):
20     model = models.Poll
21     permission_required = 'a4_candy_polls.view_poll'
22 
23     def get(self, request, *args, **kwargs):
24         try:
25             self.object = self.get_object()
26             context = self.get_context_data(object=self.object)
27             return self.render_to_response(context)
28 
29         except Http404:
30             self.object = None
31             context = self.get_context_data(object=None, request=self.request,)
32             return render_to_response(
33                 'a4_candy_polls/poll_404.html',
34                 context=context,
35                 status=404
36             )
37 
38     def get_object(self):
39         return get_object_or_404(models.Poll, module=self.module)
40 
41     def get_context_data(self, **kwargs):
42         context = super().get_context_data(**kwargs)
43         if self.object:
44             context['question_list'] = \
45                 self.object.questions.annotate_vote_count().all()
46         return context
47 
48     def get_permission_object(self):
49         return self.module
50 
51 
52 class PollDashboardView(ProjectMixin,
53                         dashboard_mixins.DashboardBaseMixin,
54                         dashboard_mixins.DashboardComponentMixin,
55                         generic.TemplateView):
56     template_name = 'a4_candy_polls/poll_dashboard.html'
57     permission_required = 'a4_candy_projects.change_project'
58 
59     def get_context_data(self, **kwargs):
60         context = super().get_context_data(**kwargs)
61         context['poll'] = self.get_or_create_poll()
62         return context
63 
64     def get_or_create_poll(self):
65         try:
66             obj = models.Poll.objects.get(module=self.module)
67         except models.Poll.DoesNotExist:
68             obj = models.Poll(module=self.module,
69                               creator=self.request.user)
70             obj.save()
71         return obj
72 
73     def get_permission_object(self):
74         return self.project
75 
76 
77 class PollDashboardExportView(DashboardExportView):
78     template_name = 'a4_candy_exports/export_dashboard.html'
79 
80     def get_context_data(self, **kwargs):
81         context = super().get_context_data(**kwargs)
82         context['comment_export'] = reverse(
83             'a4dashboard:poll-comment-export',
84             kwargs={'module_slug': self.module.slug})
85         return context
86
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/apps/polls/views.py b/apps/polls/views.py
--- a/apps/polls/views.py
+++ b/apps/polls/views.py
@@ -81,5 +81,8 @@
         context = super().get_context_data(**kwargs)
         context['comment_export'] = reverse(
             'a4dashboard:poll-comment-export',
-            kwargs={'module_slug': self.module.slug})
+            kwargs={
+                'organisation_slug': self.module.project.organisation.slug,
+                'module_slug': self.module.slug
+            })
         return context

{"golden_diff": "diff --git a/apps/polls/views.py b/apps/polls/views.py\n--- a/apps/polls/views.py\n+++ b/apps/polls/views.py\n@@ -81,5 +81,8 @@\n         context = super().get_context_data(**kwargs)\n         context['comment_export'] = reverse(\n             'a4dashboard:poll-comment-export',\n-            kwargs={'module_slug': self.module.slug})\n+            kwargs={\n+                'organisation_slug': self.module.project.organisation.slug,\n+                'module_slug': self.module.slug\n+            })\n         return context\n", "issue": "poll-comment export seems to be broken\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: GET\r\nRequest URL: http://localhost:8004/liqd-orga/dashboard/modules/umfrage/poll/export/\r\n\r\nDjango Version: 2.2.6\r\nPython Version: 3.7.3\r\nInstalled Applications:\r\n('django.contrib.sites',\r\n 'django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sitemaps',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.humanize',\r\n 'widget_tweaks',\r\n 'rest_framework',\r\n 'allauth',\r\n 'allauth.account',\r\n 'allauth.socialaccount',\r\n 'rules.apps.AutodiscoverRulesConfig',\r\n 'easy_thumbnails',\r\n 'ckeditor',\r\n 'ckeditor_uploader',\r\n 'capture_tag',\r\n 'background_task',\r\n 'wagtail.contrib.forms',\r\n 'wagtail.contrib.redirects',\r\n 'wagtail.contrib.settings',\r\n 'wagtail.contrib.styleguide',\r\n 'wagtail.embeds',\r\n 'wagtail.sites',\r\n 'wagtail.users',\r\n 'wagtail.snippets',\r\n 'wagtail.documents',\r\n 'wagtail.images',\r\n 'wagtail.search',\r\n 'wagtail.admin',\r\n 'wagtail.core',\r\n 'modelcluster',\r\n 'taggit',\r\n 'apps.cms.pages',\r\n 'apps.cms.settings',\r\n 'apps.cms.contacts',\r\n 'apps.cms.news',\r\n 'apps.cms.use_cases',\r\n 'apps.cms.images',\r\n 'adhocracy4.actions',\r\n 'adhocracy4.administrative_districts',\r\n 'adhocracy4.categories',\r\n 'adhocracy4.ckeditor',\r\n 'adhocracy4.comments',\r\n 'adhocracy4.dashboard',\r\n 'adhocracy4.filters',\r\n 'adhocracy4.follows',\r\n 'adhocracy4.forms',\r\n 'adhocracy4.images',\r\n 'adhocracy4.labels',\r\n 'adhocracy4.maps',\r\n 'adhocracy4.modules',\r\n 'adhocracy4.organisations',\r\n 'adhocracy4.phases',\r\n 'adhocracy4.projects',\r\n 'adhocracy4.ratings',\r\n 'adhocracy4.reports',\r\n 'adhocracy4.rules',\r\n 'apps.actions',\r\n 'apps.contrib',\r\n 'apps.likes',\r\n 'apps.maps',\r\n 'apps.moderatorfeedback',\r\n 'apps.moderatorremark',\r\n 'apps.newsletters',\r\n 'apps.notifications',\r\n 'apps.organisations',\r\n 'apps.partners',\r\n 'apps.questions',\r\n 'apps.users',\r\n 'apps.account',\r\n 'apps.dashboard',\r\n 'apps.embed',\r\n 'apps.exports',\r\n 'apps.offlineevents',\r\n 'apps.projects',\r\n 'apps.activities',\r\n 'apps.budgeting',\r\n 'apps.documents',\r\n 'apps.ideas',\r\n 'apps.mapideas',\r\n 'apps.polls',\r\n 'allauth.socialaccount.providers.facebook',\r\n 'allauth.socialaccount.providers.github',\r\n 'allauth.socialaccount.providers.google',\r\n 'allauth.socialaccount.providers.twitter')\r\nInstalled Middleware:\r\n('django.middleware.security.SecurityMiddleware',\r\n 'whitenoise.middleware.WhiteNoiseMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'django_cloudflare_push.middleware.push_middleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.locale.LocaleMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'apps.embed.middleware.AjaxPathMiddleware',\r\n 'wagtail.core.middleware.SiteMiddleware',\r\n 'wagtail.contrib.redirects.middleware.RedirectMiddleware')\r\n\r\n\r\n\r\nTraceback:\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/exception.py\" in inner\r\n  34.             response = get_response(request)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/base.py\" in _get_response\r\n  115.                 response = self.process_exception_by_middleware(e, request)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/core/handlers/base.py\" in _get_response\r\n  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py\" in view\r\n  71.             return self.dispatch(request, *args, **kwargs)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/contrib/auth/mixins.py\" in dispatch\r\n  85.         return super().dispatch(request, *args, **kwargs)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py\" in dispatch\r\n  97.         return handler(request, *args, **kwargs)\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/views/generic/base.py\" in get\r\n  158.         context = self.get_context_data(**kwargs)\r\n\r\nFile \"/home/katharina/a4-product/apps/polls/views.py\" in get_context_data\r\n  84.             kwargs={'module_slug': self.module.slug})\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/urls/base.py\" in reverse\r\n  90.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))\r\n\r\nFile \"/home/katharina/a4-product/venv/lib/python3.7/site-packages/django/urls/resolvers.py\" in _reverse_with_prefix\r\n  673.         raise NoReverseMatch(msg)\r\n\r\nException Type: NoReverseMatch at /liqd-orga/dashboard/modules/umfrage/poll/export/\r\nException Value: Reverse for 'poll-comment-export' with keyword arguments '{'module_slug': 'umfrage'}' not found. 1 pattern(s) tried: ['(?P<organisation_slug>[-\\\\w_]+)/dashboard/modules/(?P<module_slug>[-\\\\w_]+)/poll/export/comments/$']\r\n```\n", "before_files": [{"content": "from django.http import Http404\nfrom django.shortcuts import get_object_or_404\nfrom django.shortcuts import render_to_response\nfrom django.urls import reverse\nfrom django.views import generic\n\nfrom adhocracy4.dashboard import mixins as dashboard_mixins\nfrom adhocracy4.projects.mixins import DisplayProjectOrModuleMixin\nfrom adhocracy4.projects.mixins import ProjectMixin\nfrom adhocracy4.rules import mixins as rules_mixins\nfrom apps.exports.views import DashboardExportView\n\nfrom . import models\n\n\nclass PollDetailView(ProjectMixin,\n                     rules_mixins.PermissionRequiredMixin,\n                     generic.DetailView,\n                     DisplayProjectOrModuleMixin):\n    model = models.Poll\n    permission_required = 'a4_candy_polls.view_poll'\n\n    def get(self, request, *args, **kwargs):\n        try:\n            self.object = self.get_object()\n            context = self.get_context_data(object=self.object)\n            return self.render_to_response(context)\n\n        except Http404:\n            self.object = None\n            context = self.get_context_data(object=None, request=self.request,)\n            return render_to_response(\n                'a4_candy_polls/poll_404.html',\n                context=context,\n                status=404\n            )\n\n    def get_object(self):\n        return get_object_or_404(models.Poll, module=self.module)\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        if self.object:\n            context['question_list'] = \\\n                self.object.questions.annotate_vote_count().all()\n        return context\n\n    def get_permission_object(self):\n        return self.module\n\n\nclass PollDashboardView(ProjectMixin,\n                        dashboard_mixins.DashboardBaseMixin,\n                        dashboard_mixins.DashboardComponentMixin,\n                        generic.TemplateView):\n    template_name = 'a4_candy_polls/poll_dashboard.html'\n    permission_required = 'a4_candy_projects.change_project'\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        context['poll'] = self.get_or_create_poll()\n        return context\n\n    def get_or_create_poll(self):\n        try:\n            obj = models.Poll.objects.get(module=self.module)\n        except models.Poll.DoesNotExist:\n            obj = models.Poll(module=self.module,\n                              creator=self.request.user)\n            obj.save()\n        return obj\n\n    def get_permission_object(self):\n        return self.project\n\n\nclass PollDashboardExportView(DashboardExportView):\n    template_name = 'a4_candy_exports/export_dashboard.html'\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        context['comment_export'] = reverse(\n            'a4dashboard:poll-comment-export',\n            kwargs={'module_slug': self.module.slug})\n        return context\n", "path": "apps/polls/views.py"}], "after_files": [{"content": "from django.http import Http404\nfrom django.shortcuts import get_object_or_404\nfrom django.shortcuts import render_to_response\nfrom django.urls import reverse\nfrom django.views import generic\n\nfrom adhocracy4.dashboard import mixins as dashboard_mixins\nfrom adhocracy4.projects.mixins import DisplayProjectOrModuleMixin\nfrom adhocracy4.projects.mixins import ProjectMixin\nfrom adhocracy4.rules import mixins as rules_mixins\nfrom apps.exports.views import DashboardExportView\n\nfrom . import models\n\n\nclass PollDetailView(ProjectMixin,\n                     rules_mixins.PermissionRequiredMixin,\n                     generic.DetailView,\n                     DisplayProjectOrModuleMixin):\n    model = models.Poll\n    permission_required = 'a4_candy_polls.view_poll'\n\n    def get(self, request, *args, **kwargs):\n        try:\n            self.object = self.get_object()\n            context = self.get_context_data(object=self.object)\n            return self.render_to_response(context)\n\n        except Http404:\n            self.object = None\n            context = self.get_context_data(object=None, request=self.request,)\n            return render_to_response(\n                'a4_candy_polls/poll_404.html',\n                context=context,\n                status=404\n            )\n\n    def get_object(self):\n        return get_object_or_404(models.Poll, module=self.module)\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        if self.object:\n            context['question_list'] = \\\n                self.object.questions.annotate_vote_count().all()\n        return context\n\n    def get_permission_object(self):\n        return self.module\n\n\nclass PollDashboardView(ProjectMixin,\n                        dashboard_mixins.DashboardBaseMixin,\n                        dashboard_mixins.DashboardComponentMixin,\n                        generic.TemplateView):\n    template_name = 'a4_candy_polls/poll_dashboard.html'\n    permission_required = 'a4_candy_projects.change_project'\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        context['poll'] = self.get_or_create_poll()\n        return context\n\n    def get_or_create_poll(self):\n        try:\n            obj = models.Poll.objects.get(module=self.module)\n        except models.Poll.DoesNotExist:\n            obj = models.Poll(module=self.module,\n                              creator=self.request.user)\n            obj.save()\n        return obj\n\n    def get_permission_object(self):\n        return self.project\n\n\nclass PollDashboardExportView(DashboardExportView):\n    template_name = 'a4_candy_exports/export_dashboard.html'\n\n    def get_context_data(self, **kwargs):\n        context = super().get_context_data(**kwargs)\n        context['comment_export'] = reverse(\n            'a4dashboard:poll-comment-export',\n            kwargs={\n                'organisation_slug': self.module.project.organisation.slug,\n                'module_slug': self.module.slug\n            })\n        return context\n", "path": "apps/polls/views.py"}]}