之前“所属部门必填”会拦掉部门列为空的更新行,导致已有员工无法被覆盖。 改为:填了才校验是否存在;为空时——更新保留原部门、新增才报错。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| errors.py | ||
| filters.py | ||
| models.py | ||
| serializers.py | ||
| services.py | ||
| signals.py | ||
| tasks.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||