From 532845f301ac3855176f0738f840bad19dd379f2 Mon Sep 17 00:00:00 2001 From: Ryan Noelk Date: Fri, 2 Mar 2018 17:41:16 -0500 Subject: [PATCH] using list slug for lookups (#3) --- v1/list/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/list/views.py b/v1/list/views.py index a5692e7..08b480d 100644 --- a/v1/list/views.py +++ b/v1/list/views.py @@ -17,6 +17,7 @@ class GroceryListViewSet(viewsets.ModelViewSet): This viewset automatically provides `list`, `create`, `retrieve`, `update` and `destroy` actions. """ + lookup_field = 'slug' serializer_class = GroceryListSerializer permission_classes = (IsListOwner,)