Fast-Controller 0.6.1__tar.gz → 0.6.2b0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/PKG-INFO +1 -1
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/fast_controller/__init__.py +4 -1
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/pyproject.toml +1 -1
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/README.md +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/fast_controller/resource.py +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/fast_controller/schema.py +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/fast_controller/util.py +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/tests/test_controller.py +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/tests/test_resource.py +0 -0
- {fast_controller-0.6.1 → fast_controller-0.6.2b0}/tests/test_util.py +0 -0
|
@@ -163,7 +163,10 @@ def _register_modify_endpoint(controller, router: APIRouter, resource: type[Reso
|
|
|
163
163
|
"""Modifies specific fields of {resource} while leaving others unchanged"""
|
|
164
164
|
dao = daos[resource]
|
|
165
165
|
result = dao.get(*extract_values(kwargs, pk))
|
|
166
|
-
result.set_values(**
|
|
166
|
+
result.set_values(**{
|
|
167
|
+
field: getattr(model, field)
|
|
168
|
+
for field in model.__pydantic_fields_set__
|
|
169
|
+
})
|
|
167
170
|
dao.commit(result)
|
|
168
171
|
return result
|
|
169
172
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|