fix: get_list calls fail sometimes due to permlevel TypeError (#38214)
This commit is contained in:
parent
9ff6043693
commit
7e6c9def71
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue