Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add admin filter users #6065

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add admin filter users #6065

wants to merge 2 commits into from

Conversation

awu0403
Copy link
Contributor

@awu0403 awu0403 commented May 11, 2024

No description provided.

@awu0403 awu0403 force-pushed the Add-filtering-users branch 3 times, most recently from cde2a00 to db2024d Compare May 11, 2024 05:54
""" % is_role(role)
users = []
print(self.db_name)
with connection.cursor() as cursor:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删掉多余的print, 代码其他地方也看看

if role == 'guest':
return 'AND role = "guest"'
"""UserRole中若没有值则就是defaule,若有则就正常,如果查询default,则"""
sql = f"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要写中文

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants