feat: cms users institution department manager
This commit is contained in:
@@ -528,7 +528,7 @@ django_eval(
|
||||
f'from apps.user.models import Institution, Department; '
|
||||
f'inst, _ = Institution.objects.get_or_create(code="{INST_CODE}", '
|
||||
f' defaults={{"name":"{INST_NAME}","type":"hospital","province":"北京","city":"北京"}}); '
|
||||
f'Department.objects.get_or_create(name="{DEPT_NAME}", institution=inst, '
|
||||
f'Department.objects.get_or_create(name="{DEPT_NAME}", '
|
||||
f' defaults={{"category":"临床"}}); '
|
||||
f'print("OK")'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user