New django-rest framework (2.3+) requires GenericAPIView (a mixin for these CBVs) to have a lookup_field attribute - I couldn't get these examples to run without first setting
lookup_field = 'slug'
otherwise the view defaults to pk (at least for the ReadUpdateDestroyAPIView)
New django-rest framework (2.3+) requires
GenericAPIView
(a mixin for these CBVs) to have alookup_field
attribute - I couldn't get these examples to run without first settingotherwise the view defaults to
pk
(at least for theReadUpdateDestroyAPIView
)