From 55886eeec9859ab003639e8e0b16726ded1b0db3 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 16 Nov 2022 12:19:15 +0000 Subject: [PATCH] Fix score __str__ bug --- apiserver/apiserver/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/models.py b/apiserver/apiserver/api/models.py index b9479a6..6e36e48 100644 --- a/apiserver/apiserver/api/models.py +++ b/apiserver/apiserver/api/models.py @@ -248,7 +248,7 @@ class PinballScore(models.Model): MY_FIELDS = ['started_at', 'game_id', 'player', 'score'] def __str__(self): - return self.started_at + return str(self.started_at) class HistoryIndex(models.Model): content_type = models.ForeignKey(ContentType, null=True, on_delete=models.SET_NULL)