prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Unexpected form parameter when creating new poster 
  As reported by sentry:
  
  ```
  Internal Server Error: /admin/posters/poster/
  
  FieldError at /admin/posters/poster/
  Cannot resolve keyword 'category' into field.
  ```
  
  As reported: `reason = 'Jeg søkte etter 2 og fant 500 i stedet'`
  
  Presume this is due to a form POSTing a field param that's not accounted for. Should be a quick and easy fix. 
  
  --- 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/posters/admin.py`
  Content:
  ```
  1 from django.contrib import admin
  2 from django.utils.translation import ugettext as _
  3 from reversion.admin import VersionAdmin
  4 
  5 from apps.posters.models import Poster
  6 
  7 
  8 class PosterAdmin(VersionAdmin):
  9     model = Poster
  10     list_display = ('event', 'title', 'assigned_to', 'display_from',
  11                     'ordered_date', 'ordered_by', 'ordered_committee')
  12     fieldsets = (
  13         (_('Event info'), {'fields': ('event', 'title', 'price', 'description', 'comments')}),
  14         (_('Order info'), {'fields': ('amount',)}),
  15         (_('proKom'), {'fields': ('display_from', 'assigned_to', 'ordered_by', 'ordered_committee', 'finished')}),
  16     )
  17     search_fields = ('title', 'category', 'company', 'when')
  18 
  19 
  20 admin.site.register(Poster, PosterAdmin)
  21 # username, expiration_date, registered, note
  22
  ```
  --- 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/apps/posters/admin.py b/apps/posters/admin.py
  --- a/apps/posters/admin.py
  +++ b/apps/posters/admin.py
  @@ -2,9 +2,10 @@
   from django.utils.translation import ugettext as _
   from reversion.admin import VersionAdmin
   
  -from apps.posters.models import Poster
  +from .models import Poster
   
   
  +@admin.register(Poster)
   class PosterAdmin(VersionAdmin):
       model = Poster
       list_display = ('event', 'title', 'assigned_to', 'display_from',
  @@ -14,8 +15,5 @@
           (_('Order info'), {'fields': ('amount',)}),
           (_('proKom'), {'fields': ('display_from', 'assigned_to', 'ordered_by', 'ordered_committee', 'finished')}),
       )
  -    search_fields = ('title', 'category', 'company', 'when')
  -
  -
  -admin.site.register(Poster, PosterAdmin)
  -# username, expiration_date, registered, note
  +    search_fields = ('title', 'event__title', 'assigned_to__first_name', 'assigned_to__last_name',
  +                     'ordered_by__first_name', 'ordered_by__last_name')
  
verification_info: {"golden_diff": "diff --git a/apps/posters/admin.py b/apps/posters/admin.py\n--- a/apps/posters/admin.py\n+++ b/apps/posters/admin.py\n@@ -2,9 +2,10 @@\n from django.utils.translation import ugettext as _\n from reversion.admin import VersionAdmin\n \n-from apps.posters.models import Poster\n+from .models import Poster\n \n \n+@admin.register(Poster)\n class PosterAdmin(VersionAdmin):\n     model = Poster\n     list_display = ('event', 'title', 'assigned_to', 'display_from',\n@@ -14,8 +15,5 @@\n         (_('Order info'), {'fields': ('amount',)}),\n         (_('proKom'), {'fields': ('display_from', 'assigned_to', 'ordered_by', 'ordered_committee', 'finished')}),\n     )\n-    search_fields = ('title', 'category', 'company', 'when')\n-\n-\n-admin.site.register(Poster, PosterAdmin)\n-# username, expiration_date, registered, note\n+    search_fields = ('title', 'event__title', 'assigned_to__first_name', 'assigned_to__last_name',\n+                     'ordered_by__first_name', 'ordered_by__last_name')\n", "issue": "Unexpected form parameter when creating new poster \nAs reported by sentry:\n\n```\nInternal Server Error: /admin/posters/poster/\n\nFieldError at /admin/posters/poster/\nCannot resolve keyword 'category' into field.\n```\n\nAs reported: `reason = 'Jeg s\u00f8kte etter 2 og fant 500 i stedet'`\n\nPresume this is due to a form POSTing a field param that's not accounted for. Should be a quick and easy fix. \n", "before_files": [{"content": "from django.contrib import admin\nfrom django.utils.translation import ugettext as _\nfrom reversion.admin import VersionAdmin\n\nfrom apps.posters.models import Poster\n\n\nclass PosterAdmin(VersionAdmin):\n    model = Poster\n    list_display = ('event', 'title', 'assigned_to', 'display_from',\n                    'ordered_date', 'ordered_by', 'ordered_committee')\n    fieldsets = (\n        (_('Event info'), {'fields': ('event', 'title', 'price', 'description', 'comments')}),\n        (_('Order info'), {'fields': ('amount',)}),\n        (_('proKom'), {'fields': ('display_from', 'assigned_to', 'ordered_by', 'ordered_committee', 'finished')}),\n    )\n    search_fields = ('title', 'category', 'company', 'when')\n\n\nadmin.site.register(Poster, PosterAdmin)\n# username, expiration_date, registered, note\n", "path": "apps/posters/admin.py"}], "after_files": [{"content": "from django.contrib import admin\nfrom django.utils.translation import ugettext as _\nfrom reversion.admin import VersionAdmin\n\nfrom .models import Poster\n\n\n@admin.register(Poster)\nclass PosterAdmin(VersionAdmin):\n    model = Poster\n    list_display = ('event', 'title', 'assigned_to', 'display_from',\n                    'ordered_date', 'ordered_by', 'ordered_committee')\n    fieldsets = (\n        (_('Event info'), {'fields': ('event', 'title', 'price', 'description', 'comments')}),\n        (_('Order info'), {'fields': ('amount',)}),\n        (_('proKom'), {'fields': ('display_from', 'assigned_to', 'ordered_by', 'ordered_committee', 'finished')}),\n    )\n    search_fields = ('title', 'event__title', 'assigned_to__first_name', 'assigned_to__last_name',\n                     'ordered_by__first_name', 'ordered_by__last_name')\n", "path": "apps/posters/admin.py"}]}