fix: get_list calls fail sometimes due to permlevel TypeError (#38214)

This commit is contained in:
Rucha Mahabal 2026-03-24 18:15:30 +05:30 committed by GitHub
parent 9ff6043693
commit 7e6c9def71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -672,7 +672,7 @@ class Meta(Document):
@cached_property
def high_permlevel_fields(self):
return [df for df in self.fields if df.permlevel > 0]
return [df for df in self.fields if (df.permlevel or 0) > 0]
def get_permitted_fieldnames(
self,