statikk 0.1.15__py3-none-any.whl → 0.1.16__py3-none-any.whl

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.
statikk/engine.py CHANGED
@@ -431,7 +431,8 @@ class Table:
431
431
 
432
432
  reconstructed_dict.pop(FIELD_STATIKK_TYPE, None)
433
433
  model = model_class.model_validate(reconstructed_dict)
434
- model._is_persisted = True
434
+ for node in model.dfs_traverse_hierarchy():
435
+ node._is_persisted = True
435
436
  return model
436
437
 
437
438
  def scan(
statikk/models.py CHANGED
@@ -263,9 +263,6 @@ class DatabaseModel(BaseModel, TrackingMixin):
263
263
 
264
264
  @property
265
265
  def is_persisted(self) -> bool:
266
- if self._parent is not None:
267
- return self._parent.is_persisted
268
-
269
266
  return self._is_persisted
270
267
 
271
268
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statikk
3
- Version: 0.1.15
3
+ Version: 0.1.16
4
4
  Summary: statikk is a single table application (STA) library for DynamoDb.
5
5
  Home-page: https://github.com/terinia/statikk
6
6
  Author: Balint Biro
@@ -1,12 +1,12 @@
1
1
  statikk/__init__.py,sha256=pH5i4Fj1tbXLqLtTVIdoojiplZssQn0nnud8-HXodRE,577
2
2
  statikk/conditions.py,sha256=63FYMR-UUaE-ZJEb_8CU721CQTwhajq39-BbokmKeMA,2166
3
- statikk/engine.py,sha256=ccQ57Xsg1brgbDZMHewPzTuCEvz0vRkEVHCRhvX2m5Q,30502
3
+ statikk/engine.py,sha256=YkJW2wUxFAIcw0o1r7RF0gwQm-znjjJ-rzBSzXBtCB0,30557
4
4
  statikk/expressions.py,sha256=boAeGxZj2cDsXxoiX3IIEzfX9voSMQngi4-rE_jYeuE,12233
5
5
  statikk/fields.py,sha256=uLGD3xEnz2nqQY6EwG8Dd7pnRMMVP4PU2Z2I-uGNaTA,150
6
- statikk/models.py,sha256=3vDyq_ox6zCGsSw72PcIbOEf4pgs3oJskLhvf--EtMQ,19740
6
+ statikk/models.py,sha256=27s8Rvb8lcQFtaxHEZsKSHebqa1c3GqClUtoE1PJH2I,19657
7
7
  statikk/typing.py,sha256=laOlOpWOm9_sOj4hhdZnGTUZRiq8760_B9I9B3wBhz8,750
8
- statikk-0.1.15.dist-info/licenses/LICENSE.txt,sha256=uSH_2Hpb2Bigy5_HhBliN2fZbBU64G3ERM5zzhKPUEE,1078
9
- statikk-0.1.15.dist-info/METADATA,sha256=sL1Y0GF7pUk3leDfgyTlhV69F5wnOiCPm5jO3WPLkcg,3183
10
- statikk-0.1.15.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
11
- statikk-0.1.15.dist-info/top_level.txt,sha256=etKmBbjzIlLpSefXoiOfhWGEgvqUEALaFwCjFDBD9YI,8
12
- statikk-0.1.15.dist-info/RECORD,,
8
+ statikk-0.1.16.dist-info/licenses/LICENSE.txt,sha256=uSH_2Hpb2Bigy5_HhBliN2fZbBU64G3ERM5zzhKPUEE,1078
9
+ statikk-0.1.16.dist-info/METADATA,sha256=mrUj-DWF9nBmjzjlLL5ax4Kkx3UahYRhEr4g39WbRpg,3183
10
+ statikk-0.1.16.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
11
+ statikk-0.1.16.dist-info/top_level.txt,sha256=etKmBbjzIlLpSefXoiOfhWGEgvqUEALaFwCjFDBD9YI,8
12
+ statikk-0.1.16.dist-info/RECORD,,