I'm having the following issue happen in the app I'm writing. I'm looking at the tag app to understand what I'm doing wrong, but everything seems to be okay. I get the following error:
Error retrieving X list: object of type 'X' has no len().
View:
Code: Select all
def get_company_queryset(self):
return self.get_offer().get_companies(user=self.request.user)
Code: Select all
def get_companies(self, user):
return AccessControlList.objects.restrict_queryset(
permission=permission_companies_view, queryset=self.company,
user=user
)
thanks for your time