misc: consider all roles prefixed with _ as internals (#36504)
This commit is contained in:
parent
b7b0b93e7a
commit
588dcfb95c
|
@ -428,7 +428,7 @@ class ServiceRoleSearchForm(CssClass, PrefixFormMixin, FormWithRequest):
|
|||
if self.cleaned_data.get('text'):
|
||||
qs = qs.filter(name__icontains=self.cleaned_data['text'])
|
||||
if not app_settings.SHOW_INTERNAL_ROLES and not self.cleaned_data.get('internals'):
|
||||
qs = qs.exclude(slug__startswith='_a2')
|
||||
qs = qs.exclude(slug__startswith='_')
|
||||
return qs
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue