fix(access): Tenancy Manager should not attempt to get org as related field if it does not exist
ref: #770
This commit is contained in:
@ -118,8 +118,9 @@ class TenancyManager(models.Manager):
|
|||||||
|
|
||||||
if has_tenant_field:
|
if has_tenant_field:
|
||||||
return super().get_queryset().select_related('organization')
|
return super().get_queryset().select_related('organization')
|
||||||
else:
|
|
||||||
return super().get_queryset().select_related('organization')
|
|
||||||
|
return super().get_queryset()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user