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:
2025-05-21 00:49:56 +09:30
parent af2bc77920
commit 15b4446775

View File

@ -118,8 +118,9 @@ class TenancyManager(models.Manager):
if has_tenant_field:
return super().get_queryset().select_related('organization')
else:
return super().get_queryset().select_related('organization')
return super().get_queryset()