fix(assistance): correct truthy check for model kb article ViewSet property when evaluating queryset

ref: #512 #518
This commit is contained in:
2025-02-04 07:59:32 +09:30
parent ab7c840c60
commit 4adb38fdd2

View File

@ -118,6 +118,10 @@ class ViewSet( ModelViewSet ):
def get_queryset(self):
if self.queryset is not None:
return self.queryset
queryset = super().get_queryset()
for value, display_name in all_models():