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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Fast-Controller
3
- Version: 0.6.1
3
+ Version: 0.6.2b0
4
4
  Summary: The fastest way to a turn your models into a full ReST API
5
5
  Keywords: controller,base,rest,api,backend
6
6
  Author-Email: Cody M Sommer <bassmastacod@gmail.com>
@@ -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(**model.model_dump(exclude_unset=True))
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
 
@@ -39,7 +39,7 @@ classifiers = [
39
39
  "Topic :: Software Development :: Libraries",
40
40
  "Typing :: Typed",
41
41
  ]
42
- version = "0.6.1"
42
+ version = "0.6.2b0"
43
43
 
44
44
  [project.license]
45
45
  text = "MIT"