prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  take out secret dev notes visible in frontend :-)
  
  ![Bildschirmfoto 2019-07-05 um 11 58 43](https://user-images.githubusercontent.com/35491681/60715029-65f58280-9f1c-11e9-85ff-91caecfbd2db.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/projects/templatetags/meinberlin_project_tags.py`
  Content:
  ```
  1 from django import template
  2 
  3 from adhocracy4.comments.models import Comment
  4 from meinberlin.apps.budgeting.models import Proposal as budget_proposal
  5 from meinberlin.apps.ideas.models import Idea
  6 from meinberlin.apps.kiezkasse.models import Proposal as kiezkasse_proposal
  7 from meinberlin.apps.mapideas.models import MapIdea
  8 from meinberlin.apps.projects import get_project_type
  9 
  10 register = template.Library()
  11 
  12 
  13 @register.filter
  14 def project_url(project):
  15     if get_project_type(project) in ('external', 'bplan'):
  16         return project.externalproject.url
  17     return project.get_absolute_url()
  18 
  19 
  20 @register.filter
  21 def project_type(project):
  22     return get_project_type(project)
  23 
  24 
  25 @register.filter
  26 def is_external(project):
  27     return get_project_type(project) in ('external', 'bplan')
  28 
  29 
  30 @register.filter
  31 def is_container(project):
  32     return get_project_type(project) == 'container'
  33 
  34 
  35 @register.simple_tag
  36 def to_class_name(value):
  37     return value.__class__.__name__
  38 
  39 
  40 @register.simple_tag
  41 def get_num_entries(module):
  42     """Count all user-generated items."""
  43     item_count = Idea.objects.filter(module=module).count() \
  44         + MapIdea.objects.filter(module=module).count() \
  45         + budget_proposal.objects.filter(module=module).count() \
  46         + kiezkasse_proposal.objects.filter(module=module).count() \
  47         + Comment.objects.filter(idea__module=module).count() \
  48         + Comment.objects.filter(mapidea__module=module).count() \
  49         + Comment.objects.filter(budget_proposal__module=module).count() \
  50         + Comment.objects.filter(kiezkasse_proposal__module=module).count()
  51     return item_count
  52
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  --- a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  +++ b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  @@ -40,12 +40,18 @@
   @register.simple_tag
   def get_num_entries(module):
       """Count all user-generated items."""
  -    item_count = Idea.objects.filter(module=module).count() \
  +    item_count = \
  +        Idea.objects.filter(module=module).count() \
           + MapIdea.objects.filter(module=module).count() \
           + budget_proposal.objects.filter(module=module).count() \
           + kiezkasse_proposal.objects.filter(module=module).count() \
           + Comment.objects.filter(idea__module=module).count() \
           + Comment.objects.filter(mapidea__module=module).count() \
           + Comment.objects.filter(budget_proposal__module=module).count() \
  -        + Comment.objects.filter(kiezkasse_proposal__module=module).count()
  +        + Comment.objects.filter(kiezkasse_proposal__module=module).count() \
  +        + Comment.objects.filter(topic__module=module).count() \
  +        + Comment.objects.filter(maptopic__module=module).count() \
  +        + Comment.objects.filter(paragraph__chapter__module=module).count() \
  +        + Comment.objects.filter(chapter__module=module).count() \
  +        + Comment.objects.filter(poll__module=module).count()
       return item_count
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n--- a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n+++ b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n@@ -40,12 +40,18 @@\n @register.simple_tag\n def get_num_entries(module):\n     \"\"\"Count all user-generated items.\"\"\"\n-    item_count = Idea.objects.filter(module=module).count() \\\n+    item_count = \\\n+        Idea.objects.filter(module=module).count() \\\n         + MapIdea.objects.filter(module=module).count() \\\n         + budget_proposal.objects.filter(module=module).count() \\\n         + kiezkasse_proposal.objects.filter(module=module).count() \\\n         + Comment.objects.filter(idea__module=module).count() \\\n         + Comment.objects.filter(mapidea__module=module).count() \\\n         + Comment.objects.filter(budget_proposal__module=module).count() \\\n-        + Comment.objects.filter(kiezkasse_proposal__module=module).count()\n+        + Comment.objects.filter(kiezkasse_proposal__module=module).count() \\\n+        + Comment.objects.filter(topic__module=module).count() \\\n+        + Comment.objects.filter(maptopic__module=module).count() \\\n+        + Comment.objects.filter(paragraph__chapter__module=module).count() \\\n+        + Comment.objects.filter(chapter__module=module).count() \\\n+        + Comment.objects.filter(poll__module=module).count()\n     return item_count\n", "issue": "take out secret dev notes visible in frontend :-)\n\r\n![Bildschirmfoto 2019-07-05 um 11 58 43](https://user-images.githubusercontent.com/35491681/60715029-65f58280-9f1c-11e9-85ff-91caecfbd2db.png)\r\n\r\n\r\n\n", "before_files": [{"content": "from django import template\n\nfrom adhocracy4.comments.models import Comment\nfrom meinberlin.apps.budgeting.models import Proposal as budget_proposal\nfrom meinberlin.apps.ideas.models import Idea\nfrom meinberlin.apps.kiezkasse.models import Proposal as kiezkasse_proposal\nfrom meinberlin.apps.mapideas.models import MapIdea\nfrom meinberlin.apps.projects import get_project_type\n\nregister = template.Library()\n\n\n@register.filter\ndef project_url(project):\n    if get_project_type(project) in ('external', 'bplan'):\n        return project.externalproject.url\n    return project.get_absolute_url()\n\n\n@register.filter\ndef project_type(project):\n    return get_project_type(project)\n\n\n@register.filter\ndef is_external(project):\n    return get_project_type(project) in ('external', 'bplan')\n\n\n@register.filter\ndef is_container(project):\n    return get_project_type(project) == 'container'\n\n\n@register.simple_tag\ndef to_class_name(value):\n    return value.__class__.__name__\n\n\n@register.simple_tag\ndef get_num_entries(module):\n    \"\"\"Count all user-generated items.\"\"\"\n    item_count = Idea.objects.filter(module=module).count() \\\n        + MapIdea.objects.filter(module=module).count() \\\n        + budget_proposal.objects.filter(module=module).count() \\\n        + kiezkasse_proposal.objects.filter(module=module).count() \\\n        + Comment.objects.filter(idea__module=module).count() \\\n        + Comment.objects.filter(mapidea__module=module).count() \\\n        + Comment.objects.filter(budget_proposal__module=module).count() \\\n        + Comment.objects.filter(kiezkasse_proposal__module=module).count()\n    return item_count\n", "path": "meinberlin/apps/projects/templatetags/meinberlin_project_tags.py"}], "after_files": [{"content": "from django import template\n\nfrom adhocracy4.comments.models import Comment\nfrom meinberlin.apps.budgeting.models import Proposal as budget_proposal\nfrom meinberlin.apps.ideas.models import Idea\nfrom meinberlin.apps.kiezkasse.models import Proposal as kiezkasse_proposal\nfrom meinberlin.apps.mapideas.models import MapIdea\nfrom meinberlin.apps.projects import get_project_type\n\nregister = template.Library()\n\n\n@register.filter\ndef project_url(project):\n    if get_project_type(project) in ('external', 'bplan'):\n        return project.externalproject.url\n    return project.get_absolute_url()\n\n\n@register.filter\ndef project_type(project):\n    return get_project_type(project)\n\n\n@register.filter\ndef is_external(project):\n    return get_project_type(project) in ('external', 'bplan')\n\n\n@register.filter\ndef is_container(project):\n    return get_project_type(project) == 'container'\n\n\n@register.simple_tag\ndef to_class_name(value):\n    return value.__class__.__name__\n\n\n@register.simple_tag\ndef get_num_entries(module):\n    \"\"\"Count all user-generated items.\"\"\"\n    item_count = \\\n        Idea.objects.filter(module=module).count() \\\n        + MapIdea.objects.filter(module=module).count() \\\n        + budget_proposal.objects.filter(module=module).count() \\\n        + kiezkasse_proposal.objects.filter(module=module).count() \\\n        + Comment.objects.filter(idea__module=module).count() \\\n        + Comment.objects.filter(mapidea__module=module).count() \\\n        + Comment.objects.filter(budget_proposal__module=module).count() \\\n        + Comment.objects.filter(kiezkasse_proposal__module=module).count() \\\n        + Comment.objects.filter(topic__module=module).count() \\\n        + Comment.objects.filter(maptopic__module=module).count() \\\n        + Comment.objects.filter(paragraph__chapter__module=module).count() \\\n        + Comment.objects.filter(chapter__module=module).count() \\\n        + Comment.objects.filter(poll__module=module).count()\n    return item_count\n", "path": "meinberlin/apps/projects/templatetags/meinberlin_project_tags.py"}]}