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

amin中重写getactions导致自定义按钮只显示新增和删除 #100

Closed
tian3824 opened this issue Jun 24, 2019 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@tian3824
Copy link

bug描述
简单的描述下遇到的bug:
在admin.py中重写get_actions,想通过判断用户控制权限,重写方法后前端只显示"增加"和"保存"的按钮

重现步骤
1.在admin.py中重写 def getactions()方法
2.print actions的数据后台正常为定义好的数据
3.前端只显示"增加"、"保存"按钮

环境

1.操作系统:
2.python版本:3.5
3.django版本:2.0
4.simpleui版本:2.1.4

其他描述
建议添加:自定义按钮可以设置到权限表中 或者可以通过getactions 反馈到前端

@tian3824 tian3824 added the bug Something isn't working label Jun 24, 2019
newpanjing added a commit that referenced this issue Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant