Only pass queued_at to be updated.

This commit is contained in:
Josh Washburne 2018-03-30 12:52:19 -04:00
parent 733163f7ba
commit b599aa5d1e

View file

@ -60,7 +60,7 @@ class NextRequest(RetrieveAPIView):
song=random_jingle)
next_play.queued_at = timezone.now()
next_play.save()
next_play.save(update_fields=['queued_at'])
serializer = GetRequestSerializer(next_play, many=False)
return Response(serializer.data)