fix the customer_list_view

This commit is contained in:
Andreas Zweili 2021-12-23 22:53:42 +01:00
parent 554a6f874d
commit 05b87c14cf
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def get_object_with_view_permission(model, user=None, pk=None):
def get_objects_with_view_permission(model, user=None):
customers = get_customers(user)
if model.__name__ == 'Customer' and customers:
if model.__name__ == 'Customer':
return customers
objects = model.objects.filter(customer__in=customers)
if not objects: