Skip to content

Commit

Permalink
pull request review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hklarner authored and m4ra committed Aug 21, 2023
1 parent 3fec30a commit f0cddd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adhocracy4/reports/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class ReportSerializer(serializers.ModelSerializer):
username = serializers.CharField(required=False, source="creator.username")
created = serializers.SerializerMethodField(required=False)

@staticmethod
def get_created(report):
def get_created(self, report):
return get_datetime_display(datetime=report.created)

class Meta:
Expand Down

0 comments on commit f0cddd5

Please sign in to comment.