Skip to content

Commit 1961532

Browse files
committed
RDBC-978 Leftover changes
1 parent 7a70784 commit 1961532

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ravendb/documents/session/misc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def __init__(
6666
def can_use_load_balance_behavior(self) -> bool:
6767
return self._can_use_load_balance_behavior
6868

69+
@property
70+
def database_name(self) -> str:
71+
return self._session.database_name
72+
6973
@property
7074
def session_id(self) -> int:
7175
if self._session_id is None:

ravendb/documents/session/operations/operations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def _get_revision(self, document: Dict[str, Any], object_type: Type[_T] = dict)
232232
document_info.document = document
233233
document_info.metadata = metadata
234234
document_info.entity = entity
235+
document_info.ignore_changes = True
235236
self._session.documents_by_entity[entity] = document_info
236237

237238
return entity

0 commit comments

Comments
 (0)