Skip to content

Commit

Permalink
Set lookup_field on ScannableURIViewSet #504
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Jul 24, 2024
1 parent 072672e commit c674d63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions minecode/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class ScannableURIViewSet(viewsets.ModelViewSet):
queryset = ScannableURI.objects.all()
serializer_class = ScannableURISerializer
permission_classes = [IsScanQueueWorkerAPIUser|IsAdminUser]
lookup_field = 'uuid'

@action(detail=False, methods=['get'])
def get_next_download_url(self, request, *args, **kwargs):
Expand Down

0 comments on commit c674d63

Please sign in to comment.