prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  AASIN and isfdb not editable
  Somehow during the merge some code most be gone lost because...
  
  <img width="640" alt="Bildschirm­foto 2022-12-11 um 21 29 47" src="https://user-images.githubusercontent.com/2017105/206927195-f9b27bcc-2f3a-46eb-ab1d-84340e5fa061.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: `bookwyrm/forms/books.py`
  Content:
  ```
  1 """ using django model forms """
  2 from django import forms
  3 
  4 from bookwyrm import models
  5 from bookwyrm.models.fields import ClearableFileInputWithWarning
  6 from .custom_form import CustomForm
  7 from .widgets import ArrayWidget, SelectDateWidget, Select
  8 
  9 
  10 # pylint: disable=missing-class-docstring
  11 class CoverForm(CustomForm):
  12     class Meta:
  13         model = models.Book
  14         fields = ["cover"]
  15         help_texts = {f: None for f in fields}
  16 
  17 
  18 class EditionForm(CustomForm):
  19     class Meta:
  20         model = models.Edition
  21         fields = [
  22             "title",
  23             "subtitle",
  24             "description",
  25             "series",
  26             "series_number",
  27             "languages",
  28             "subjects",
  29             "publishers",
  30             "first_published_date",
  31             "published_date",
  32             "cover",
  33             "physical_format",
  34             "physical_format_detail",
  35             "pages",
  36             "isbn_13",
  37             "isbn_10",
  38             "openlibrary_key",
  39             "inventaire_id",
  40             "goodreads_key",
  41             "oclc_number",
  42             "asin",
  43         ]
  44         widgets = {
  45             "title": forms.TextInput(attrs={"aria-describedby": "desc_title"}),
  46             "subtitle": forms.TextInput(attrs={"aria-describedby": "desc_subtitle"}),
  47             "description": forms.Textarea(
  48                 attrs={"aria-describedby": "desc_description"}
  49             ),
  50             "series": forms.TextInput(attrs={"aria-describedby": "desc_series"}),
  51             "series_number": forms.TextInput(
  52                 attrs={"aria-describedby": "desc_series_number"}
  53             ),
  54             "subjects": ArrayWidget(),
  55             "languages": forms.TextInput(
  56                 attrs={"aria-describedby": "desc_languages_help desc_languages"}
  57             ),
  58             "publishers": forms.TextInput(
  59                 attrs={"aria-describedby": "desc_publishers_help desc_publishers"}
  60             ),
  61             "first_published_date": SelectDateWidget(
  62                 attrs={"aria-describedby": "desc_first_published_date"}
  63             ),
  64             "published_date": SelectDateWidget(
  65                 attrs={"aria-describedby": "desc_published_date"}
  66             ),
  67             "cover": ClearableFileInputWithWarning(
  68                 attrs={"aria-describedby": "desc_cover"}
  69             ),
  70             "physical_format": Select(
  71                 attrs={"aria-describedby": "desc_physical_format"}
  72             ),
  73             "physical_format_detail": forms.TextInput(
  74                 attrs={"aria-describedby": "desc_physical_format_detail"}
  75             ),
  76             "pages": forms.NumberInput(attrs={"aria-describedby": "desc_pages"}),
  77             "isbn_13": forms.TextInput(attrs={"aria-describedby": "desc_isbn_13"}),
  78             "isbn_10": forms.TextInput(attrs={"aria-describedby": "desc_isbn_10"}),
  79             "openlibrary_key": forms.TextInput(
  80                 attrs={"aria-describedby": "desc_openlibrary_key"}
  81             ),
  82             "inventaire_id": forms.TextInput(
  83                 attrs={"aria-describedby": "desc_inventaire_id"}
  84             ),
  85             "goodreads_key": forms.TextInput(
  86                 attrs={"aria-describedby": "desc_goodreads_key"}
  87             ),
  88             "oclc_number": forms.TextInput(
  89                 attrs={"aria-describedby": "desc_oclc_number"}
  90             ),
  91             "ASIN": forms.TextInput(attrs={"aria-describedby": "desc_ASIN"}),
  92             "AASIN": forms.TextInput(attrs={"aria-describedby": "desc_AASIN"}),
  93             "isfdb": forms.TextInput(attrs={"aria-describedby": "desc_isfdb"}),
  94         }
  95 
  96 
  97 class EditionFromWorkForm(CustomForm):
  98     def __init__(self, *args, **kwargs):
  99         super().__init__(*args, **kwargs)
  100         # make all fields hidden
  101         for visible in self.visible_fields():
  102             visible.field.widget = forms.HiddenInput()
  103 
  104     class Meta:
  105         model = models.Work
  106         fields = [
  107             "title",
  108             "subtitle",
  109             "authors",
  110             "description",
  111             "languages",
  112             "series",
  113             "series_number",
  114             "subjects",
  115             "subject_places",
  116             "cover",
  117             "first_published_date",
  118         ]
  119
  ```
  --- 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/bookwyrm/forms/books.py b/bookwyrm/forms/books.py
  --- a/bookwyrm/forms/books.py
  +++ b/bookwyrm/forms/books.py
  @@ -40,6 +40,8 @@
               "goodreads_key",
               "oclc_number",
               "asin",
  +            "aasin",
  +            "isfdb",
           ]
           widgets = {
               "title": forms.TextInput(attrs={"aria-describedby": "desc_title"}),
  
verification_info: {"golden_diff": "diff --git a/bookwyrm/forms/books.py b/bookwyrm/forms/books.py\n--- a/bookwyrm/forms/books.py\n+++ b/bookwyrm/forms/books.py\n@@ -40,6 +40,8 @@\n             \"goodreads_key\",\n             \"oclc_number\",\n             \"asin\",\n+            \"aasin\",\n+            \"isfdb\",\n         ]\n         widgets = {\n             \"title\": forms.TextInput(attrs={\"aria-describedby\": \"desc_title\"}),\n", "issue": "AASIN and isfdb not editable\nSomehow during the merge some code most be gone lost because...\r\n\r\n<img width=\"640\" alt=\"Bildschirm\u00adfoto 2022-12-11 um 21 29 47\" src=\"https://user-images.githubusercontent.com/2017105/206927195-f9b27bcc-2f3a-46eb-ab1d-84340e5fa061.png\">\r\n\n", "before_files": [{"content": "\"\"\" using django model forms \"\"\"\nfrom django import forms\n\nfrom bookwyrm import models\nfrom bookwyrm.models.fields import ClearableFileInputWithWarning\nfrom .custom_form import CustomForm\nfrom .widgets import ArrayWidget, SelectDateWidget, Select\n\n\n# pylint: disable=missing-class-docstring\nclass CoverForm(CustomForm):\n    class Meta:\n        model = models.Book\n        fields = [\"cover\"]\n        help_texts = {f: None for f in fields}\n\n\nclass EditionForm(CustomForm):\n    class Meta:\n        model = models.Edition\n        fields = [\n            \"title\",\n            \"subtitle\",\n            \"description\",\n            \"series\",\n            \"series_number\",\n            \"languages\",\n            \"subjects\",\n            \"publishers\",\n            \"first_published_date\",\n            \"published_date\",\n            \"cover\",\n            \"physical_format\",\n            \"physical_format_detail\",\n            \"pages\",\n            \"isbn_13\",\n            \"isbn_10\",\n            \"openlibrary_key\",\n            \"inventaire_id\",\n            \"goodreads_key\",\n            \"oclc_number\",\n            \"asin\",\n        ]\n        widgets = {\n            \"title\": forms.TextInput(attrs={\"aria-describedby\": \"desc_title\"}),\n            \"subtitle\": forms.TextInput(attrs={\"aria-describedby\": \"desc_subtitle\"}),\n            \"description\": forms.Textarea(\n                attrs={\"aria-describedby\": \"desc_description\"}\n            ),\n            \"series\": forms.TextInput(attrs={\"aria-describedby\": \"desc_series\"}),\n            \"series_number\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_series_number\"}\n            ),\n            \"subjects\": ArrayWidget(),\n            \"languages\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_languages_help desc_languages\"}\n            ),\n            \"publishers\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_publishers_help desc_publishers\"}\n            ),\n            \"first_published_date\": SelectDateWidget(\n                attrs={\"aria-describedby\": \"desc_first_published_date\"}\n            ),\n            \"published_date\": SelectDateWidget(\n                attrs={\"aria-describedby\": \"desc_published_date\"}\n            ),\n            \"cover\": ClearableFileInputWithWarning(\n                attrs={\"aria-describedby\": \"desc_cover\"}\n            ),\n            \"physical_format\": Select(\n                attrs={\"aria-describedby\": \"desc_physical_format\"}\n            ),\n            \"physical_format_detail\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_physical_format_detail\"}\n            ),\n            \"pages\": forms.NumberInput(attrs={\"aria-describedby\": \"desc_pages\"}),\n            \"isbn_13\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isbn_13\"}),\n            \"isbn_10\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isbn_10\"}),\n            \"openlibrary_key\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_openlibrary_key\"}\n            ),\n            \"inventaire_id\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_inventaire_id\"}\n            ),\n            \"goodreads_key\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_goodreads_key\"}\n            ),\n            \"oclc_number\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_oclc_number\"}\n            ),\n            \"ASIN\": forms.TextInput(attrs={\"aria-describedby\": \"desc_ASIN\"}),\n            \"AASIN\": forms.TextInput(attrs={\"aria-describedby\": \"desc_AASIN\"}),\n            \"isfdb\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isfdb\"}),\n        }\n\n\nclass EditionFromWorkForm(CustomForm):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        # make all fields hidden\n        for visible in self.visible_fields():\n            visible.field.widget = forms.HiddenInput()\n\n    class Meta:\n        model = models.Work\n        fields = [\n            \"title\",\n            \"subtitle\",\n            \"authors\",\n            \"description\",\n            \"languages\",\n            \"series\",\n            \"series_number\",\n            \"subjects\",\n            \"subject_places\",\n            \"cover\",\n            \"first_published_date\",\n        ]\n", "path": "bookwyrm/forms/books.py"}], "after_files": [{"content": "\"\"\" using django model forms \"\"\"\nfrom django import forms\n\nfrom bookwyrm import models\nfrom bookwyrm.models.fields import ClearableFileInputWithWarning\nfrom .custom_form import CustomForm\nfrom .widgets import ArrayWidget, SelectDateWidget, Select\n\n\n# pylint: disable=missing-class-docstring\nclass CoverForm(CustomForm):\n    class Meta:\n        model = models.Book\n        fields = [\"cover\"]\n        help_texts = {f: None for f in fields}\n\n\nclass EditionForm(CustomForm):\n    class Meta:\n        model = models.Edition\n        fields = [\n            \"title\",\n            \"subtitle\",\n            \"description\",\n            \"series\",\n            \"series_number\",\n            \"languages\",\n            \"subjects\",\n            \"publishers\",\n            \"first_published_date\",\n            \"published_date\",\n            \"cover\",\n            \"physical_format\",\n            \"physical_format_detail\",\n            \"pages\",\n            \"isbn_13\",\n            \"isbn_10\",\n            \"openlibrary_key\",\n            \"inventaire_id\",\n            \"goodreads_key\",\n            \"oclc_number\",\n            \"asin\",\n            \"aasin\",\n            \"isfdb\",\n        ]\n        widgets = {\n            \"title\": forms.TextInput(attrs={\"aria-describedby\": \"desc_title\"}),\n            \"subtitle\": forms.TextInput(attrs={\"aria-describedby\": \"desc_subtitle\"}),\n            \"description\": forms.Textarea(\n                attrs={\"aria-describedby\": \"desc_description\"}\n            ),\n            \"series\": forms.TextInput(attrs={\"aria-describedby\": \"desc_series\"}),\n            \"series_number\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_series_number\"}\n            ),\n            \"subjects\": ArrayWidget(),\n            \"languages\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_languages_help desc_languages\"}\n            ),\n            \"publishers\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_publishers_help desc_publishers\"}\n            ),\n            \"first_published_date\": SelectDateWidget(\n                attrs={\"aria-describedby\": \"desc_first_published_date\"}\n            ),\n            \"published_date\": SelectDateWidget(\n                attrs={\"aria-describedby\": \"desc_published_date\"}\n            ),\n            \"cover\": ClearableFileInputWithWarning(\n                attrs={\"aria-describedby\": \"desc_cover\"}\n            ),\n            \"physical_format\": Select(\n                attrs={\"aria-describedby\": \"desc_physical_format\"}\n            ),\n            \"physical_format_detail\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_physical_format_detail\"}\n            ),\n            \"pages\": forms.NumberInput(attrs={\"aria-describedby\": \"desc_pages\"}),\n            \"isbn_13\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isbn_13\"}),\n            \"isbn_10\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isbn_10\"}),\n            \"openlibrary_key\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_openlibrary_key\"}\n            ),\n            \"inventaire_id\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_inventaire_id\"}\n            ),\n            \"goodreads_key\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_goodreads_key\"}\n            ),\n            \"oclc_number\": forms.TextInput(\n                attrs={\"aria-describedby\": \"desc_oclc_number\"}\n            ),\n            \"ASIN\": forms.TextInput(attrs={\"aria-describedby\": \"desc_ASIN\"}),\n            \"AASIN\": forms.TextInput(attrs={\"aria-describedby\": \"desc_AASIN\"}),\n            \"isfdb\": forms.TextInput(attrs={\"aria-describedby\": \"desc_isfdb\"}),\n        }\n\n\nclass EditionFromWorkForm(CustomForm):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        # make all fields hidden\n        for visible in self.visible_fields():\n            visible.field.widget = forms.HiddenInput()\n\n    class Meta:\n        model = models.Work\n        fields = [\n            \"title\",\n            \"subtitle\",\n            \"authors\",\n            \"description\",\n            \"languages\",\n            \"series\",\n            \"series_number\",\n            \"subjects\",\n            \"subject_places\",\n            \"cover\",\n            \"first_published_date\",\n        ]\n", "path": "bookwyrm/forms/books.py"}]}