f3-data-models 0.5.14__tar.gz → 0.5.15__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.3
2
2
  Name: f3-data-models
3
- Version: 0.5.14
3
+ Version: 0.5.15
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  License: MIT
6
6
  Author: Evan Petzoldt
@@ -194,13 +194,13 @@ class DbManager:
194
194
  for obj in objects:
195
195
  # Update simple fields
196
196
  for attr, value in fields.items():
197
- key = attr.key
197
+ key = attr if isinstance(attr, str) else attr.key
198
198
  if key in valid_attributes and not isinstance(value, InstrumentedList):
199
199
  setattr(obj, key, value)
200
200
 
201
201
  # Update relationships separately
202
202
  for attr, value in fields.items():
203
- key = attr.key
203
+ key = attr if isinstance(attr, str) else attr.key
204
204
  if key in valid_relationships:
205
205
  # Handle relationships separately
206
206
  relationship = inspect(cls).mapper.relationships[key]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "f3-data-models"
3
- version = "0.5.14"
3
+ version = "0.5.15"
4
4
  description = "The data schema and models for F3 Nation applications."
5
5
  authors = ["Evan Petzoldt <evan.petzoldt@protonmail.com>"]
6
6
  readme = "README.md"