Skip to content

Commit

Permalink
using list slug for lookups (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk authored Mar 2, 2018
1 parent 727f2d1 commit 532845f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v1/list/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

Expand Down

0 comments on commit 532845f

Please sign in to comment.