prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add album to event foreign key to api
  Feature request (I'm making this via the Github app so the template doesn't work) 
  
  
  See title, Julian wants this :)
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `website/photos/api/v2/serializers/album.py`
  Content:
  ```
  1 from rest_framework import serializers
  2 
  3 from photos import services
  4 from photos.api.v2.serializers.photo import PhotoSerializer, PhotoListSerializer
  5 from photos.models import Album
  6 from thaliawebsite.api.v2.serializers.cleaned_model_serializer import (
  7     CleanedModelSerializer,
  8 )
  9 
  10 
  11 class AlbumSerializer(CleanedModelSerializer):
  12     """API serializer for albums."""
  13 
  14     class Meta:
  15         """Meta class for the serializer."""
  16 
  17         model = Album
  18         fields = ("slug", "title", "accessible", "shareable", "cover", "photos")
  19 
  20     cover = PhotoSerializer()
  21     accessible = serializers.SerializerMethodField("_accessible")
  22     photos = PhotoListSerializer(source="photo_set", many=True)
  23 
  24     def _accessible(self, obj):
  25         return services.is_album_accessible(self.context["request"], obj)
  26 
  27 
  28 class AlbumListSerializer(AlbumSerializer):
  29     class Meta:
  30         """Meta class for the serializer."""
  31 
  32         model = Album
  33         fields = ("slug", "title", "accessible", "shareable", "cover")
  34
  ```
  --- 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/website/photos/api/v2/serializers/album.py b/website/photos/api/v2/serializers/album.py
  --- a/website/photos/api/v2/serializers/album.py
  +++ b/website/photos/api/v2/serializers/album.py
  @@ -15,7 +15,15 @@
           """Meta class for the serializer."""
   
           model = Album
  -        fields = ("slug", "title", "accessible", "shareable", "cover", "photos")
  +        fields = (
  +            "slug",
  +            "title",
  +            "accessible",
  +            "shareable",
  +            "cover",
  +            "photos",
  +            "event",
  +        )
   
       cover = PhotoSerializer()
       accessible = serializers.SerializerMethodField("_accessible")
  @@ -30,4 +38,4 @@
           """Meta class for the serializer."""
   
           model = Album
  -        fields = ("slug", "title", "accessible", "shareable", "cover")
  +        fields = ("slug", "title", "accessible", "shareable", "cover", "event")
  
verification_info: {"golden_diff": "diff --git a/website/photos/api/v2/serializers/album.py b/website/photos/api/v2/serializers/album.py\n--- a/website/photos/api/v2/serializers/album.py\n+++ b/website/photos/api/v2/serializers/album.py\n@@ -15,7 +15,15 @@\n         \"\"\"Meta class for the serializer.\"\"\"\n \n         model = Album\n-        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\", \"photos\")\n+        fields = (\n+            \"slug\",\n+            \"title\",\n+            \"accessible\",\n+            \"shareable\",\n+            \"cover\",\n+            \"photos\",\n+            \"event\",\n+        )\n \n     cover = PhotoSerializer()\n     accessible = serializers.SerializerMethodField(\"_accessible\")\n@@ -30,4 +38,4 @@\n         \"\"\"Meta class for the serializer.\"\"\"\n \n         model = Album\n-        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\")\n+        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\", \"event\")\n", "issue": "Add album to event foreign key to api\nFeature request (I'm making this via the Github app so the template doesn't work) \n\n\nSee title, Julian wants this :)\n", "before_files": [{"content": "from rest_framework import serializers\n\nfrom photos import services\nfrom photos.api.v2.serializers.photo import PhotoSerializer, PhotoListSerializer\nfrom photos.models import Album\nfrom thaliawebsite.api.v2.serializers.cleaned_model_serializer import (\n    CleanedModelSerializer,\n)\n\n\nclass AlbumSerializer(CleanedModelSerializer):\n    \"\"\"API serializer for albums.\"\"\"\n\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = Album\n        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\", \"photos\")\n\n    cover = PhotoSerializer()\n    accessible = serializers.SerializerMethodField(\"_accessible\")\n    photos = PhotoListSerializer(source=\"photo_set\", many=True)\n\n    def _accessible(self, obj):\n        return services.is_album_accessible(self.context[\"request\"], obj)\n\n\nclass AlbumListSerializer(AlbumSerializer):\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = Album\n        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\")\n", "path": "website/photos/api/v2/serializers/album.py"}], "after_files": [{"content": "from rest_framework import serializers\n\nfrom photos import services\nfrom photos.api.v2.serializers.photo import PhotoSerializer, PhotoListSerializer\nfrom photos.models import Album\nfrom thaliawebsite.api.v2.serializers.cleaned_model_serializer import (\n    CleanedModelSerializer,\n)\n\n\nclass AlbumSerializer(CleanedModelSerializer):\n    \"\"\"API serializer for albums.\"\"\"\n\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = Album\n        fields = (\n            \"slug\",\n            \"title\",\n            \"accessible\",\n            \"shareable\",\n            \"cover\",\n            \"photos\",\n            \"event\",\n        )\n\n    cover = PhotoSerializer()\n    accessible = serializers.SerializerMethodField(\"_accessible\")\n    photos = PhotoListSerializer(source=\"photo_set\", many=True)\n\n    def _accessible(self, obj):\n        return services.is_album_accessible(self.context[\"request\"], obj)\n\n\nclass AlbumListSerializer(AlbumSerializer):\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = Album\n        fields = (\"slug\", \"title\", \"accessible\", \"shareable\", \"cover\", \"event\")\n", "path": "website/photos/api/v2/serializers/album.py"}]}