提交 d3baf402 编写于 作者: P Pzqqt

wuliu: forms.py: Add missing merges in bcf8d06e

上级 24107f04
......@@ -1249,7 +1249,7 @@ class ManageUsers(_FormBase):
administrator = forms.BooleanField(label="管理员", required=False, initial=False)
department = forms.ChoiceField(
label="所属部门",
choices=((None, "---------"), *((dept.id, dept.tree_str()) for dept in Department.objects.all())),
choices=((None, "---------"), *((dept.id, dept.tree_str) for dept in Department.objects.all())),
)
def __init__(self, *args, **kwargs):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册