I have an Asset Detail View that uses data from another two models, Tenant and Service.
asset\views.py
class AssetMultipleDetailView(LoginRequiredMixin, UserPassesTestMixin, DetailView):
    model = Asset
    context_object_name = 'asset'
    template_name = 'asset/asset_multiple_detail.html'
    def test_func(self):
        asset_multiple = self.get_object()
        if self.request.user == asset_multiple.owner:
            return True
        return False
    def get_context_data(self, **kwargs):
        context = super(AssetMultipleDetailView, self).get_context_data(**kwargs)
        context['tenants'] = Tenant.objects.filter(asset=context['asset']).order_by('created')
        context['services'] = Service.objects.filter(asset=context['asset']).order_by('created')
        return context
I would like to paginate the data that's in context['tenants] and context['services'] and I do not know how to achieve this.
I have done this in their own ListViews using paginated_by and got it working without any issues.
I simply would like to know how to paginate a context in a DetailView.
Thank you in advance.