prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Groups miss description in API v2
  ### Describe the bug
  The `description` field is missing in the `activemembers/groups` serializers. 
  
  ### How to reproduce
  Look at swagger.
  
  ### Expected behaviour
  An extra field for the description, at least in the detail endpoints.
  
  ### Additional context
  Also something to double-check: groups have a field `display_members`. This is not included in the serializers, so are the members not shown if that field is true?
  
  
  </issue>
  <code>
  [start of website/activemembers/api/v2/serializers/member_group.py]
  1 from rest_framework import serializers
  2 
  3 from activemembers.api.v2.serializers.member_group_membership import (
  4     MemberGroupMembershipSerializer,
  5 )
  6 from activemembers.models import MemberGroup
  7 from thaliawebsite.api.v2.serializers import ThumbnailSerializer
  8 
  9 
  10 class MemberGroupSerializer(serializers.ModelSerializer):
  11     """API serializer for member groups."""
  12 
  13     def __init__(self, *args, **kwargs):
  14         super().__init__(*args, **kwargs)
  15 
  16         if "get_memberships" not in self.context and "members" in self.fields:
  17             self.fields.pop("members")
  18 
  19     class Meta:
  20         """Meta class for the serializer."""
  21 
  22         model = MemberGroup
  23         fields = (
  24             "pk",
  25             "name",
  26             "type",
  27             "since",
  28             "until",
  29             "contact_address",
  30             "photo",
  31             "members",
  32         )
  33 
  34     members = serializers.SerializerMethodField("_members")
  35     type = serializers.SerializerMethodField("_type")
  36     photo = ThumbnailSerializer(placeholder="activemembers/images/placeholder.png")
  37 
  38     def _members(self, instance):
  39         memberships = self.context["get_memberships"](instance).prefetch_related(
  40             "member__membergroupmembership_set"
  41         )
  42         return MemberGroupMembershipSerializer(
  43             many=True, context=self.context
  44         ).to_representation(memberships)
  45 
  46     def _type(self, instance):
  47         if hasattr(instance, "board"):
  48             return "board"
  49         if hasattr(instance, "committee"):
  50             return "committee"
  51         if hasattr(instance, "society"):
  52             return "society"
  53         return None
  54 
  55 
  56 class MemberGroupListSerializer(MemberGroupSerializer):
  57     class Meta:
  58         """Meta class for the serializer."""
  59 
  60         model = MemberGroup
  61         fields = ("pk", "name", "type", "since", "until", "contact_address", "photo")
  62
  [end of website/activemembers/api/v2/serializers/member_group.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/website/activemembers/api/v2/serializers/member_group.py b/website/activemembers/api/v2/serializers/member_group.py
  --- a/website/activemembers/api/v2/serializers/member_group.py
  +++ b/website/activemembers/api/v2/serializers/member_group.py
  @@ -24,6 +24,7 @@
               "pk",
               "name",
               "type",
  +            "description",
               "since",
               "until",
               "contact_address",
  @@ -58,4 +59,13 @@
           """Meta class for the serializer."""
   
           model = MemberGroup
  -        fields = ("pk", "name", "type", "since", "until", "contact_address", "photo")
  +        fields = (
  +            "pk",
  +            "name",
  +            "type",
  +            "description",
  +            "since",
  +            "until",
  +            "contact_address",
  +            "photo",
  +        )
  
verification_info: {"golden_diff": "diff --git a/website/activemembers/api/v2/serializers/member_group.py b/website/activemembers/api/v2/serializers/member_group.py\n--- a/website/activemembers/api/v2/serializers/member_group.py\n+++ b/website/activemembers/api/v2/serializers/member_group.py\n@@ -24,6 +24,7 @@\n             \"pk\",\n             \"name\",\n             \"type\",\n+            \"description\",\n             \"since\",\n             \"until\",\n             \"contact_address\",\n@@ -58,4 +59,13 @@\n         \"\"\"Meta class for the serializer.\"\"\"\n \n         model = MemberGroup\n-        fields = (\"pk\", \"name\", \"type\", \"since\", \"until\", \"contact_address\", \"photo\")\n+        fields = (\n+            \"pk\",\n+            \"name\",\n+            \"type\",\n+            \"description\",\n+            \"since\",\n+            \"until\",\n+            \"contact_address\",\n+            \"photo\",\n+        )\n", "issue": "Groups miss description in API v2\n### Describe the bug\r\nThe `description` field is missing in the `activemembers/groups` serializers. \r\n\r\n### How to reproduce\r\nLook at swagger.\r\n\r\n### Expected behaviour\r\nAn extra field for the description, at least in the detail endpoints.\r\n\r\n### Additional context\r\nAlso something to double-check: groups have a field `display_members`. This is not included in the serializers, so are the members not shown if that field is true?\r\n\n", "before_files": [{"content": "from rest_framework import serializers\n\nfrom activemembers.api.v2.serializers.member_group_membership import (\n    MemberGroupMembershipSerializer,\n)\nfrom activemembers.models import MemberGroup\nfrom thaliawebsite.api.v2.serializers import ThumbnailSerializer\n\n\nclass MemberGroupSerializer(serializers.ModelSerializer):\n    \"\"\"API serializer for member groups.\"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n\n        if \"get_memberships\" not in self.context and \"members\" in self.fields:\n            self.fields.pop(\"members\")\n\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = MemberGroup\n        fields = (\n            \"pk\",\n            \"name\",\n            \"type\",\n            \"since\",\n            \"until\",\n            \"contact_address\",\n            \"photo\",\n            \"members\",\n        )\n\n    members = serializers.SerializerMethodField(\"_members\")\n    type = serializers.SerializerMethodField(\"_type\")\n    photo = ThumbnailSerializer(placeholder=\"activemembers/images/placeholder.png\")\n\n    def _members(self, instance):\n        memberships = self.context[\"get_memberships\"](instance).prefetch_related(\n            \"member__membergroupmembership_set\"\n        )\n        return MemberGroupMembershipSerializer(\n            many=True, context=self.context\n        ).to_representation(memberships)\n\n    def _type(self, instance):\n        if hasattr(instance, \"board\"):\n            return \"board\"\n        if hasattr(instance, \"committee\"):\n            return \"committee\"\n        if hasattr(instance, \"society\"):\n            return \"society\"\n        return None\n\n\nclass MemberGroupListSerializer(MemberGroupSerializer):\n    class Meta:\n        \"\"\"Meta class for the serializer.\"\"\"\n\n        model = MemberGroup\n        fields = (\"pk\", \"name\", \"type\", \"since\", \"until\", \"contact_address\", \"photo\")\n", "path": "website/activemembers/api/v2/serializers/member_group.py"}]}