prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  AttributeError: 'Event' object has no attribute 'title_en'
  Sentry Issue: [CONCREXIT-6D](https://sentry.io/organizations/thalia/issues/2465590057/?referrer=github_integration)
  
  ```
  AttributeError: 'Event' object has no attribute 'title_en'
  (9 additional frame(s) were not displayed)
  ...
    File "rest_framework/mixins.py", line 68, in update
      self.perform_update(serializer)
    File "pizzas/api/v1/viewsets.py", line 105, in perform_update
      self._update_payment(
    File "pizzas/api/v1/viewsets.py", line 114, in _update_payment
      order.payment = create_payment(order, processed_by, payment_type)
    File "payments/services.py", line 67, in create_payment
      notes=payable.payment_notes,
    File "pizzas/payables.py", line 21, in payment_notes
      f"Food order by {self.model.member_name} "
  ```
  
  --- 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/pizzas/payables.py`
  Content:
  ```
  1 from django.template.defaultfilters import date
  2 
  3 from payments import Payable, payables
  4 from pizzas.models import FoodOrder
  5 from pizzas.services import can_change_order
  6 
  7 
  8 class FoodOrderPayable(Payable):
  9     @property
  10     def payment_amount(self):
  11         return self.model.product.price
  12 
  13     @property
  14     def payment_topic(self):
  15         start_date = date(self.model.food_event.start, "Y-m-d")
  16         return f"Food {self.model.food_event.event.title_en} [{start_date}]"
  17 
  18     @property
  19     def payment_notes(self):
  20         return (
  21             f"Food order by {self.model.member_name} "
  22             f"for {self.model.food_event.event.title_en}"
  23         )
  24 
  25     @property
  26     def payment_payer(self):
  27         return self.model.member
  28 
  29     def can_manage_payment(self, member):
  30         return can_change_order(member, self.model.food_event)
  31 
  32 
  33 def register():
  34     payables.register(FoodOrder, FoodOrderPayable)
  35
  ```
  --- 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/pizzas/payables.py b/website/pizzas/payables.py
  --- a/website/pizzas/payables.py
  +++ b/website/pizzas/payables.py
  @@ -13,13 +13,13 @@
       @property
       def payment_topic(self):
           start_date = date(self.model.food_event.start, "Y-m-d")
  -        return f"Food {self.model.food_event.event.title_en} [{start_date}]"
  +        return f"Food {self.model.food_event.event.title} [{start_date}]"
   
       @property
       def payment_notes(self):
           return (
               f"Food order by {self.model.member_name} "
  -            f"for {self.model.food_event.event.title_en}"
  +            f"for {self.model.food_event.event.title}"
           )
   
       @property
  
verification_info: {"golden_diff": "diff --git a/website/pizzas/payables.py b/website/pizzas/payables.py\n--- a/website/pizzas/payables.py\n+++ b/website/pizzas/payables.py\n@@ -13,13 +13,13 @@\n     @property\n     def payment_topic(self):\n         start_date = date(self.model.food_event.start, \"Y-m-d\")\n-        return f\"Food {self.model.food_event.event.title_en} [{start_date}]\"\n+        return f\"Food {self.model.food_event.event.title} [{start_date}]\"\n \n     @property\n     def payment_notes(self):\n         return (\n             f\"Food order by {self.model.member_name} \"\n-            f\"for {self.model.food_event.event.title_en}\"\n+            f\"for {self.model.food_event.event.title}\"\n         )\n \n     @property\n", "issue": "AttributeError: 'Event' object has no attribute 'title_en'\nSentry Issue: [CONCREXIT-6D](https://sentry.io/organizations/thalia/issues/2465590057/?referrer=github_integration)\n\n```\nAttributeError: 'Event' object has no attribute 'title_en'\n(9 additional frame(s) were not displayed)\n...\n  File \"rest_framework/mixins.py\", line 68, in update\n    self.perform_update(serializer)\n  File \"pizzas/api/v1/viewsets.py\", line 105, in perform_update\n    self._update_payment(\n  File \"pizzas/api/v1/viewsets.py\", line 114, in _update_payment\n    order.payment = create_payment(order, processed_by, payment_type)\n  File \"payments/services.py\", line 67, in create_payment\n    notes=payable.payment_notes,\n  File \"pizzas/payables.py\", line 21, in payment_notes\n    f\"Food order by {self.model.member_name} \"\n```\n", "before_files": [{"content": "from django.template.defaultfilters import date\n\nfrom payments import Payable, payables\nfrom pizzas.models import FoodOrder\nfrom pizzas.services import can_change_order\n\n\nclass FoodOrderPayable(Payable):\n    @property\n    def payment_amount(self):\n        return self.model.product.price\n\n    @property\n    def payment_topic(self):\n        start_date = date(self.model.food_event.start, \"Y-m-d\")\n        return f\"Food {self.model.food_event.event.title_en} [{start_date}]\"\n\n    @property\n    def payment_notes(self):\n        return (\n            f\"Food order by {self.model.member_name} \"\n            f\"for {self.model.food_event.event.title_en}\"\n        )\n\n    @property\n    def payment_payer(self):\n        return self.model.member\n\n    def can_manage_payment(self, member):\n        return can_change_order(member, self.model.food_event)\n\n\ndef register():\n    payables.register(FoodOrder, FoodOrderPayable)\n", "path": "website/pizzas/payables.py"}], "after_files": [{"content": "from django.template.defaultfilters import date\n\nfrom payments import Payable, payables\nfrom pizzas.models import FoodOrder\nfrom pizzas.services import can_change_order\n\n\nclass FoodOrderPayable(Payable):\n    @property\n    def payment_amount(self):\n        return self.model.product.price\n\n    @property\n    def payment_topic(self):\n        start_date = date(self.model.food_event.start, \"Y-m-d\")\n        return f\"Food {self.model.food_event.event.title} [{start_date}]\"\n\n    @property\n    def payment_notes(self):\n        return (\n            f\"Food order by {self.model.member_name} \"\n            f\"for {self.model.food_event.event.title}\"\n        )\n\n    @property\n    def payment_payer(self):\n        return self.model.member\n\n    def can_manage_payment(self, member):\n        return can_change_order(member, self.model.food_event)\n\n\ndef register():\n    payables.register(FoodOrder, FoodOrderPayable)\n", "path": "website/pizzas/payables.py"}]}