We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
voting in brainstorming
the votings are shown on pop up for ideas within brainstorming although there is no voting.

<img width="332" alt="bildschirmfoto 2019-02-05 um 15 01 57" src="https://user-images.githubusercontent.com/35491681/52278354-20299380-2957-11e9-8368-dfb42c142a3a.png">


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `meinberlin/apps/newsletters/emails.py`
Content:
```
1 from email.mime.image import MIMEImage
2 
3 from django.apps import apps
4 from django.conf import settings
5 from django.contrib import auth
6 
7 from adhocracy4.emails.mixins import ReportToAdminEmailMixin
8 from meinberlin.apps.contrib.emails import Email
9 
10 Organisation = apps.get_model(settings.A4_ORGANISATIONS_MODEL)
11 User = auth.get_user_model()
12 
13 
14 class NewsletterEmail(ReportToAdminEmailMixin, Email):
15     template_name = 'meinberlin_newsletters/emails/newsletter_email'
16 
17     def dispatch(self, object, *args, **kwargs):
18         organisation_pk = kwargs.pop('organisation_pk', None)
19         organisation = None
20         if organisation_pk:
21             organisation = Organisation.objects.get(pk=organisation_pk)
22         kwargs['organisation'] = organisation
23 
24         return super().dispatch(object, *args, **kwargs)
25 
26     def get_reply_to(self):
27         return ['{} <{}>'.format(self.object.sender_name, self.object.sender)]
28 
29     def get_receivers(self):
30         return User.objects\
31             .filter(id__in=self.kwargs['participant_ids'])\
32             .filter(get_newsletters=True)\
33             .filter(is_active=True)\
34             .distinct()
35 
36     def get_attachments(self):
37         attachments = super().get_attachments()
38 
39         organisation = self.kwargs['organisation']
40         if organisation and organisation.logo:
41             f = open(organisation.logo.path, 'rb')
42             logo = MIMEImage(f.read())
43             logo.add_header('Content-ID', '<{}>'.format('organisation_logo'))
44             attachments += [logo]
45 
46         return attachments
47 
48 
49 class NewsletterEmailAll(NewsletterEmail):
50 
51     def get_receivers(self):
52         return User.objects\
53             .filter(is_active=True)\
54             .distinct()
55
```

Path: `meinberlin/apps/users/admin.py`
Content:
```
1 from django.contrib import admin
2 from django.contrib import auth
3 from django.contrib.auth.models import Group
4 from django.utils.translation import ugettext_lazy as _
5 
6 from . import models
7 from .forms import UserAdminForm
8 
9 
10 class UserAdmin(auth.admin.UserAdmin):
11     form = UserAdminForm
12     fieldsets = (
13         (None, {'fields': ('username', 'email', 'password', 'groups')}),
14         (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),
15         (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
16     )
17     add_fieldsets = (
18         (None, {
19             'classes': ('wide',),
20             'fields': ('username', 'email', 'password1', 'password2'),
21         }),
22     )
23     readonly_fields = ('date_joined', 'last_login')
24     list_display = (
25         'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',
26         'is_superuser'
27     )
28     list_filter = ('is_staff', 'is_superuser', 'last_login')
29     search_fields = ('username', 'email', 'id')
30 
31 
32 class GroupAdmin(admin.ModelAdmin):
33     fieldsets = (
34         (None, {'fields': ('name', )}),
35     )
36 
37 
38 admin.site.register(models.User, UserAdmin)
39 admin.site.unregister(Group)
40 admin.site.register(Group, GroupAdmin)
41
```
--- 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/meinberlin/apps/newsletters/emails.py b/meinberlin/apps/newsletters/emails.py
--- a/meinberlin/apps/newsletters/emails.py
+++ b/meinberlin/apps/newsletters/emails.py
@@ -50,5 +50,6 @@
 
     def get_receivers(self):
         return User.objects\
+            .filter(get_newsletters=True)\
             .filter(is_active=True)\
             .distinct()
diff --git a/meinberlin/apps/users/admin.py b/meinberlin/apps/users/admin.py
--- a/meinberlin/apps/users/admin.py
+++ b/meinberlin/apps/users/admin.py
@@ -12,7 +12,8 @@
     fieldsets = (
         (None, {'fields': ('username', 'email', 'password', 'groups')}),
         (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),
-        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
+        (_('Important dates'),
+         {'fields': ('last_login', 'date_joined', 'get_newsletters')}),
     )
     add_fieldsets = (
         (None, {
@@ -20,10 +21,10 @@
             'fields': ('username', 'email', 'password1', 'password2'),
         }),
     )
-    readonly_fields = ('date_joined', 'last_login')
+    readonly_fields = ('date_joined', 'last_login', 'get_newsletters')
     list_display = (
         'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',
-        'is_superuser'
+        'is_superuser', 'get_newsletters'
     )
     list_filter = ('is_staff', 'is_superuser', 'last_login')
     search_fields = ('username', 'email', 'id')

{"golden_diff": "diff --git a/meinberlin/apps/newsletters/emails.py b/meinberlin/apps/newsletters/emails.py\n--- a/meinberlin/apps/newsletters/emails.py\n+++ b/meinberlin/apps/newsletters/emails.py\n@@ -50,5 +50,6 @@\n \n     def get_receivers(self):\n         return User.objects\\\n+            .filter(get_newsletters=True)\\\n             .filter(is_active=True)\\\n             .distinct()\ndiff --git a/meinberlin/apps/users/admin.py b/meinberlin/apps/users/admin.py\n--- a/meinberlin/apps/users/admin.py\n+++ b/meinberlin/apps/users/admin.py\n@@ -12,7 +12,8 @@\n     fieldsets = (\n         (None, {'fields': ('username', 'email', 'password', 'groups')}),\n         (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),\n-        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),\n+        (_('Important dates'),\n+         {'fields': ('last_login', 'date_joined', 'get_newsletters')}),\n     )\n     add_fieldsets = (\n         (None, {\n@@ -20,10 +21,10 @@\n             'fields': ('username', 'email', 'password1', 'password2'),\n         }),\n     )\n-    readonly_fields = ('date_joined', 'last_login')\n+    readonly_fields = ('date_joined', 'last_login', 'get_newsletters')\n     list_display = (\n         'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',\n-        'is_superuser'\n+        'is_superuser', 'get_newsletters'\n     )\n     list_filter = ('is_staff', 'is_superuser', 'last_login')\n     search_fields = ('username', 'email', 'id')\n", "issue": "voting in brainstorming\nthe votings are shown on pop up for ideas within brainstorming although there is no voting.\r\n\r\n<img width=\"332\" alt=\"bildschirmfoto 2019-02-05 um 15 01 57\" src=\"https://user-images.githubusercontent.com/35491681/52278354-20299380-2957-11e9-8368-dfb42c142a3a.png\">\r\n\n", "before_files": [{"content": "from email.mime.image import MIMEImage\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import auth\n\nfrom adhocracy4.emails.mixins import ReportToAdminEmailMixin\nfrom meinberlin.apps.contrib.emails import Email\n\nOrganisation = apps.get_model(settings.A4_ORGANISATIONS_MODEL)\nUser = auth.get_user_model()\n\n\nclass NewsletterEmail(ReportToAdminEmailMixin, Email):\n    template_name = 'meinberlin_newsletters/emails/newsletter_email'\n\n    def dispatch(self, object, *args, **kwargs):\n        organisation_pk = kwargs.pop('organisation_pk', None)\n        organisation = None\n        if organisation_pk:\n            organisation = Organisation.objects.get(pk=organisation_pk)\n        kwargs['organisation'] = organisation\n\n        return super().dispatch(object, *args, **kwargs)\n\n    def get_reply_to(self):\n        return ['{} <{}>'.format(self.object.sender_name, self.object.sender)]\n\n    def get_receivers(self):\n        return User.objects\\\n            .filter(id__in=self.kwargs['participant_ids'])\\\n            .filter(get_newsletters=True)\\\n            .filter(is_active=True)\\\n            .distinct()\n\n    def get_attachments(self):\n        attachments = super().get_attachments()\n\n        organisation = self.kwargs['organisation']\n        if organisation and organisation.logo:\n            f = open(organisation.logo.path, 'rb')\n            logo = MIMEImage(f.read())\n            logo.add_header('Content-ID', '<{}>'.format('organisation_logo'))\n            attachments += [logo]\n\n        return attachments\n\n\nclass NewsletterEmailAll(NewsletterEmail):\n\n    def get_receivers(self):\n        return User.objects\\\n            .filter(is_active=True)\\\n            .distinct()\n", "path": "meinberlin/apps/newsletters/emails.py"}, {"content": "from django.contrib import admin\nfrom django.contrib import auth\nfrom django.contrib.auth.models import Group\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom . import models\nfrom .forms import UserAdminForm\n\n\nclass UserAdmin(auth.admin.UserAdmin):\n    form = UserAdminForm\n    fieldsets = (\n        (None, {'fields': ('username', 'email', 'password', 'groups')}),\n        (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),\n        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),\n    )\n    add_fieldsets = (\n        (None, {\n            'classes': ('wide',),\n            'fields': ('username', 'email', 'password1', 'password2'),\n        }),\n    )\n    readonly_fields = ('date_joined', 'last_login')\n    list_display = (\n        'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',\n        'is_superuser'\n    )\n    list_filter = ('is_staff', 'is_superuser', 'last_login')\n    search_fields = ('username', 'email', 'id')\n\n\nclass GroupAdmin(admin.ModelAdmin):\n    fieldsets = (\n        (None, {'fields': ('name', )}),\n    )\n\n\nadmin.site.register(models.User, UserAdmin)\nadmin.site.unregister(Group)\nadmin.site.register(Group, GroupAdmin)\n", "path": "meinberlin/apps/users/admin.py"}], "after_files": [{"content": "from email.mime.image import MIMEImage\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import auth\n\nfrom adhocracy4.emails.mixins import ReportToAdminEmailMixin\nfrom meinberlin.apps.contrib.emails import Email\n\nOrganisation = apps.get_model(settings.A4_ORGANISATIONS_MODEL)\nUser = auth.get_user_model()\n\n\nclass NewsletterEmail(ReportToAdminEmailMixin, Email):\n    template_name = 'meinberlin_newsletters/emails/newsletter_email'\n\n    def dispatch(self, object, *args, **kwargs):\n        organisation_pk = kwargs.pop('organisation_pk', None)\n        organisation = None\n        if organisation_pk:\n            organisation = Organisation.objects.get(pk=organisation_pk)\n        kwargs['organisation'] = organisation\n\n        return super().dispatch(object, *args, **kwargs)\n\n    def get_reply_to(self):\n        return ['{} <{}>'.format(self.object.sender_name, self.object.sender)]\n\n    def get_receivers(self):\n        return User.objects\\\n            .filter(id__in=self.kwargs['participant_ids'])\\\n            .filter(get_newsletters=True)\\\n            .filter(is_active=True)\\\n            .distinct()\n\n    def get_attachments(self):\n        attachments = super().get_attachments()\n\n        organisation = self.kwargs['organisation']\n        if organisation and organisation.logo:\n            f = open(organisation.logo.path, 'rb')\n            logo = MIMEImage(f.read())\n            logo.add_header('Content-ID', '<{}>'.format('organisation_logo'))\n            attachments += [logo]\n\n        return attachments\n\n\nclass NewsletterEmailAll(NewsletterEmail):\n\n    def get_receivers(self):\n        return User.objects\\\n            .filter(get_newsletters=True)\\\n            .filter(is_active=True)\\\n            .distinct()\n", "path": "meinberlin/apps/newsletters/emails.py"}, {"content": "from django.contrib import admin\nfrom django.contrib import auth\nfrom django.contrib.auth.models import Group\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom . import models\nfrom .forms import UserAdminForm\n\n\nclass UserAdmin(auth.admin.UserAdmin):\n    form = UserAdminForm\n    fieldsets = (\n        (None, {'fields': ('username', 'email', 'password', 'groups')}),\n        (_('Permissions'), {'fields': ('is_staff', 'is_superuser')}),\n        (_('Important dates'),\n         {'fields': ('last_login', 'date_joined', 'get_newsletters')}),\n    )\n    add_fieldsets = (\n        (None, {\n            'classes': ('wide',),\n            'fields': ('username', 'email', 'password1', 'password2'),\n        }),\n    )\n    readonly_fields = ('date_joined', 'last_login', 'get_newsletters')\n    list_display = (\n        'id', 'username', 'email', 'date_joined', 'last_login', 'is_staff',\n        'is_superuser', 'get_newsletters'\n    )\n    list_filter = ('is_staff', 'is_superuser', 'last_login')\n    search_fields = ('username', 'email', 'id')\n\n\nclass GroupAdmin(admin.ModelAdmin):\n    fieldsets = (\n        (None, {'fields': ('name', )}),\n    )\n\n\nadmin.site.register(models.User, UserAdmin)\nadmin.site.unregister(Group)\nadmin.site.register(Group, GroupAdmin)\n", "path": "meinberlin/apps/users/admin.py"}]}