fix - bug of distribution serializer of quota stat
This commit is contained in:
@@ -545,7 +545,7 @@ class Quota(BaseModel):
|
||||
stat = OrganizationQuotaStats.objects.filter(
|
||||
quota=self,
|
||||
)
|
||||
return stat.first()
|
||||
return stat.first() if stat.exists() else None
|
||||
|
||||
def soft_delete(self):
|
||||
self.trash = True
|
||||
|
||||
Reference in New Issue
Block a user