mlmongo 2.0.2__tar.gz → 2.0.3__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.
- {mlmongo-2.0.2 → mlmongo-2.0.3}/PKG-INFO +1 -1
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/model.py +2 -1
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo.egg-info/PKG-INFO +1 -1
- {mlmongo-2.0.2 → mlmongo-2.0.3}/MANIFEST.in +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/__init__.py +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/__pycache__/asyncs.cpython-312.pyc +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/__pycache__/model.cpython-312.pyc +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/asyncs.py +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo/sync.py +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo.egg-info/SOURCES.txt +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo.egg-info/dependency_links.txt +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo.egg-info/requires.txt +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/mlmongo.egg-info/top_level.txt +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/setup.cfg +0 -0
- {mlmongo-2.0.2 → mlmongo-2.0.3}/setup.py +0 -0
|
@@ -475,7 +475,8 @@ class MongoModel(BaseModel):
|
|
|
475
475
|
|
|
476
476
|
def mgt_set_id(self, id_: ObjectId|None):
|
|
477
477
|
self.id_ = id_
|
|
478
|
-
|
|
478
|
+
if id_:
|
|
479
|
+
for field in self.MGConfig.sync_ids: setattr(self, field, self._id)
|
|
479
480
|
|
|
480
481
|
def mgt_model_dump(self)->dict:
|
|
481
482
|
return self.model_dump(exclude=self.MGConfig.sync_ids or None)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|