diff --git a/tests/testapp/views.py b/tests/testapp/views.py index 755e7c2..87bb317 100644 --- a/tests/testapp/views.py +++ b/tests/testapp/views.py @@ -10,6 +10,9 @@ class BookMixin(object): + # or just one line: model = Book + def get_queryset(self): + return Book.objects.all() def get_object(self): return Book.objects.get(pk=self.kwargs['book_id'])