Skip to content

Commit 13359b7

Browse files
authored
Fix the phone filter in the user list (#838)
1 parent 500f20d commit 13359b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/admin/crud/crud_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def get_list(self, dept: int | None, username: str | None, phone: str | No
200200
if username:
201201
filters['username__like'] = f'%{username}%'
202202
if phone:
203-
filters['phone_like'] = f'%{phone}%'
203+
filters['phone__like'] = f'%{phone}%'
204204
if status is not None:
205205
filters['status'] = status
206206

0 commit comments

Comments
 (0)