Only pass queued_at to be updated.
This commit is contained in:
parent
733163f7ba
commit
b599aa5d1e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class NextRequest(RetrieveAPIView):
|
||||||
song=random_jingle)
|
song=random_jingle)
|
||||||
|
|
||||||
next_play.queued_at = timezone.now()
|
next_play.queued_at = timezone.now()
|
||||||
next_play.save()
|
next_play.save(update_fields=['queued_at'])
|
||||||
|
|
||||||
serializer = GetRequestSerializer(next_play, many=False)
|
serializer = GetRequestSerializer(next_play, many=False)
|
||||||
return Response(serializer.data)
|
return Response(serializer.data)
|
||||||
|
|
Loading…
Reference in a new issue