prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  (react list) proposal-list-item should show created/modified date
  **URL:** proposal-list
  **user:** any
  **expected behaviour:** list items (tiles) in react list should show `created on/modified on` in front of date (see django list)
  **behaviour:** list items do not indicate created on or modified on, but shows only the date
  **important screensize:** any
  **device & browser:** any
  **Comment/Question:** 
  
  Screenshot?
  
  Note: This will only affect where this particular react list is used (currently only used for budgeting/proposal-list)
  
  </issue>
  <code>
  [start of meinberlin/apps/budgeting/serializers.py]
  1 from django.utils import translation
  2 from rest_framework import serializers
  3 
  4 from adhocracy4.categories.models import Category
  5 
  6 from .models import Proposal
  7 
  8 
  9 class CategoryField(serializers.Field):
  10 
  11     def to_internal_value(self, category):
  12         if category:
  13             return Category.objects.get(pk=category)
  14         else:
  15             return None
  16 
  17     def to_representation(self, category):
  18         return {'id': category.pk, 'name': category.name}
  19 
  20 
  21 class ProposalSerializer(serializers.ModelSerializer):
  22 
  23     creator = serializers.SerializerMethodField()
  24     comment_count = serializers.SerializerMethodField()
  25     positive_rating_count = serializers.SerializerMethodField()
  26     negative_rating_count = serializers.SerializerMethodField()
  27     category = CategoryField()
  28     url = serializers.SerializerMethodField()
  29     locale = serializers.SerializerMethodField()
  30 
  31     class Meta:
  32         model = Proposal
  33         fields = ('budget', 'category', 'comment_count', 'created', 'creator',
  34                   'is_archived', 'name', 'negative_rating_count',
  35                   'positive_rating_count', 'url', 'pk', 'moderator_feedback',
  36                   'moderator_feedback_choices', 'locale')
  37         read_only_fields = ('budget', 'category', 'comment_count', 'created',
  38                             'creator', 'is_archived', 'name',
  39                             'negative_rating_count', 'positive_rating_count',
  40                             'url', 'pk', 'moderator_feedback',
  41                             'moderator_feedback_choices', 'locale')
  42 
  43     def get_creator(self, proposal):
  44         return proposal.creator.username
  45 
  46     def get_comment_count(self, proposal):
  47         if hasattr(proposal, 'comment_count'):
  48             return proposal.comment_count
  49         else:
  50             return 0
  51 
  52     def get_positive_rating_count(self, proposal):
  53         if hasattr(proposal, 'positive_rating_count'):
  54             return proposal.positive_rating_count
  55         else:
  56             return 0
  57 
  58     def get_negative_rating_count(self, proposal):
  59         if hasattr(proposal, 'negative_rating_count'):
  60             return proposal.negative_rating_count
  61         else:
  62             return 0
  63 
  64     def get_url(self, proposal):
  65         return proposal.get_absolute_url()
  66 
  67     def get_moderator_feedback(self, proposal):
  68         if hasattr(proposal, 'moderator_feedback'):
  69             return proposal.moderator_feedback
  70         else:
  71             return None
  72 
  73     def get_moderator_feedback_choices(self, proposal):
  74         if hasattr(proposal, 'moderator_feedback_choices'):
  75             return proposal.moderator_feedback_choices
  76         else:
  77             return None
  78 
  79     def get_locale(self, proposal):
  80         return translation.get_language()
  81
  [end of meinberlin/apps/budgeting/serializers.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/meinberlin/apps/budgeting/serializers.py b/meinberlin/apps/budgeting/serializers.py
  --- a/meinberlin/apps/budgeting/serializers.py
  +++ b/meinberlin/apps/budgeting/serializers.py
  @@ -30,12 +30,12 @@
   
       class Meta:
           model = Proposal
  -        fields = ('budget', 'category', 'comment_count', 'created', 'creator',
  -                  'is_archived', 'name', 'negative_rating_count',
  +        fields = ('budget', 'category', 'comment_count', 'created', 'modified',
  +                  'creator', 'is_archived', 'name', 'negative_rating_count',
                     'positive_rating_count', 'url', 'pk', 'moderator_feedback',
                     'moderator_feedback_choices', 'locale')
           read_only_fields = ('budget', 'category', 'comment_count', 'created',
  -                            'creator', 'is_archived', 'name',
  +                            'modified', 'creator', 'is_archived', 'name',
                               'negative_rating_count', 'positive_rating_count',
                               'url', 'pk', 'moderator_feedback',
                               'moderator_feedback_choices', 'locale')
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/budgeting/serializers.py b/meinberlin/apps/budgeting/serializers.py\n--- a/meinberlin/apps/budgeting/serializers.py\n+++ b/meinberlin/apps/budgeting/serializers.py\n@@ -30,12 +30,12 @@\n \n     class Meta:\n         model = Proposal\n-        fields = ('budget', 'category', 'comment_count', 'created', 'creator',\n-                  'is_archived', 'name', 'negative_rating_count',\n+        fields = ('budget', 'category', 'comment_count', 'created', 'modified',\n+                  'creator', 'is_archived', 'name', 'negative_rating_count',\n                   'positive_rating_count', 'url', 'pk', 'moderator_feedback',\n                   'moderator_feedback_choices', 'locale')\n         read_only_fields = ('budget', 'category', 'comment_count', 'created',\n-                            'creator', 'is_archived', 'name',\n+                            'modified', 'creator', 'is_archived', 'name',\n                             'negative_rating_count', 'positive_rating_count',\n                             'url', 'pk', 'moderator_feedback',\n                             'moderator_feedback_choices', 'locale')\n", "issue": "(react list) proposal-list-item should show created/modified date\n**URL:** proposal-list\r\n**user:** any\r\n**expected behaviour:** list items (tiles) in react list should show `created on/modified on` in front of date (see django list)\r\n**behaviour:** list items do not indicate created on or modified on, but shows only the date\r\n**important screensize:** any\r\n**device & browser:** any\r\n**Comment/Question:** \r\n\r\nScreenshot?\r\n\r\nNote: This will only affect where this particular react list is used (currently only used for budgeting/proposal-list)\n", "before_files": [{"content": "from django.utils import translation\nfrom rest_framework import serializers\n\nfrom adhocracy4.categories.models import Category\n\nfrom .models import Proposal\n\n\nclass CategoryField(serializers.Field):\n\n    def to_internal_value(self, category):\n        if category:\n            return Category.objects.get(pk=category)\n        else:\n            return None\n\n    def to_representation(self, category):\n        return {'id': category.pk, 'name': category.name}\n\n\nclass ProposalSerializer(serializers.ModelSerializer):\n\n    creator = serializers.SerializerMethodField()\n    comment_count = serializers.SerializerMethodField()\n    positive_rating_count = serializers.SerializerMethodField()\n    negative_rating_count = serializers.SerializerMethodField()\n    category = CategoryField()\n    url = serializers.SerializerMethodField()\n    locale = serializers.SerializerMethodField()\n\n    class Meta:\n        model = Proposal\n        fields = ('budget', 'category', 'comment_count', 'created', 'creator',\n                  'is_archived', 'name', 'negative_rating_count',\n                  'positive_rating_count', 'url', 'pk', 'moderator_feedback',\n                  'moderator_feedback_choices', 'locale')\n        read_only_fields = ('budget', 'category', 'comment_count', 'created',\n                            'creator', 'is_archived', 'name',\n                            'negative_rating_count', 'positive_rating_count',\n                            'url', 'pk', 'moderator_feedback',\n                            'moderator_feedback_choices', 'locale')\n\n    def get_creator(self, proposal):\n        return proposal.creator.username\n\n    def get_comment_count(self, proposal):\n        if hasattr(proposal, 'comment_count'):\n            return proposal.comment_count\n        else:\n            return 0\n\n    def get_positive_rating_count(self, proposal):\n        if hasattr(proposal, 'positive_rating_count'):\n            return proposal.positive_rating_count\n        else:\n            return 0\n\n    def get_negative_rating_count(self, proposal):\n        if hasattr(proposal, 'negative_rating_count'):\n            return proposal.negative_rating_count\n        else:\n            return 0\n\n    def get_url(self, proposal):\n        return proposal.get_absolute_url()\n\n    def get_moderator_feedback(self, proposal):\n        if hasattr(proposal, 'moderator_feedback'):\n            return proposal.moderator_feedback\n        else:\n            return None\n\n    def get_moderator_feedback_choices(self, proposal):\n        if hasattr(proposal, 'moderator_feedback_choices'):\n            return proposal.moderator_feedback_choices\n        else:\n            return None\n\n    def get_locale(self, proposal):\n        return translation.get_language()\n", "path": "meinberlin/apps/budgeting/serializers.py"}]}