Closed igorsimb closed 5 months ago
Override get_queryset
in both: the itemListView
and ItemDetailView
class ItemListView(PermissionListMixin, ListView):
# ... other code as before ...
def get_queryset(self):
tenant = self.request.user.tenant
return Item.objects.filter(tenant=tenant)
Also
item_list
shows the item twice now. Only for superuser