Make date output less verbose.

This commit is contained in:
Josh Washburne 2018-03-30 13:07:58 -04:00
parent f6e0365e6b
commit b342fbb116

View file

@ -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 song.is_song and not self.user.is_staff and not song.is_requestable:
if not song.is_enabled or not song.is_published: if not song.is_enabled or not song.is_published:
raise MakeRequestError('Song not available at this time.') 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 ' message = ('Song has been played recently and cannot be requested '
'again until {}') 'again until {}')
raise MakeRequestError(message.format(play_again)) raise MakeRequestError(message.format(play_again))