From b342fbb116bd315a37dfd816a3519404ed4a144f Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Fri, 30 Mar 2018 13:07:58 -0400 Subject: [PATCH] Make date output less verbose. --- savepointradio/profiles/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/savepointradio/profiles/models.py b/savepointradio/profiles/models.py index 3f1e2f7..fc7dd65 100644 --- a/savepointradio/profiles/models.py +++ b/savepointradio/profiles/models.py @@ -66,7 +66,8 @@ class RadioProfile(Disableable, Timestampable, models.Model): if song.is_song and not self.user.is_staff and not song.is_requestable: if not song.is_enabled or not song.is_published: raise MakeRequestError('Song not available at this time.') - play_again = song.get_date_when_requestable() + play_again = song.get_date_when_requestable().isoformat(' ', + 'seconds') message = ('Song has been played recently and cannot be requested ' 'again until {}') raise MakeRequestError(message.format(play_again))