Commit 33916139 authored by Daniel W Bond's avatar Daniel W Bond

oh huh... it's actually *that* easy to add a 'detailview' with drf

parent f2b8414a
......@@ -19,3 +19,4 @@ class ListingViewSet(ReadOnlyModelViewSet):
queryset = Listing.objects.all().order_by('-created')
serializer_class = ListingSerializer
pagination_class = ListingPagination
lookup_field = 'slug'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment