committed by
					
						 Stefan Wójcik
						Stefan Wójcik
					
				
			
			
				
	
			
			
			
						parent
						
							3cb6a5cfac
						
					
				
				
					commit
					d0741946c7
				
			| @@ -715,7 +715,7 @@ class Document(BaseDocument): | |||||||
|                 except (KeyError, AttributeError): |                 except (KeyError, AttributeError): | ||||||
|                     try: |                     try: | ||||||
|                         # If field is a special field, e.g. items is stored as _reserved_items, |                         # If field is a special field, e.g. items is stored as _reserved_items, | ||||||
|                         # an KeyError is thrown. So try to retrieve the field from _data |                         # a KeyError is thrown. So try to retrieve the field from _data | ||||||
|                         setattr(self, field, self._reload(field, obj._data.get(field))) |                         setattr(self, field, self._reload(field, obj._data.get(field))) | ||||||
|                     except KeyError: |                     except KeyError: | ||||||
|                         # If field is removed from the database while the object |                         # If field is removed from the database while the object | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user