Skip to content

Commit

Permalink
Merge pull request #323 from IMBlues/development
Browse files Browse the repository at this point in the history
fix: 修复 no_page 时返回异常
  • Loading branch information
IMBlues authored Mar 23, 2022
2 parents 321695c + 18b661f commit ccc4f42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/bkuser_core/profiles/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def list(self, request, *args, **kwargs):
if fields:
self._check_fields(fields)
else:
fields = self.get_serializer().fields
fields = [x for x in self.get_serializer().fields if x in self._get_model_field_names()]

self._ensure_enabled_field(request, fields=fields)

try:
Expand Down

0 comments on commit ccc4f42

Please sign in to comment.