refs #709, fix typos

This commit is contained in:
Wilson Júnior 2014-07-25 08:48:24 -03:00
parent 87c97efce0
commit 15bbf26b93

View File

@ -1047,13 +1047,12 @@ class CachedReferenceField(BaseField):
doc_tipe = self.document_type
if isinstance(document, Document):
# Wen need the id from the saved object to create the DBRef
# We need the id from the saved object to create the DBRef
id_ = document.pk
if id_ is None:
self.error('You can only reference documents once they have'
' been saved to the database')
else:
raise SystemError(document)
self.error('Only accept a document object')
value = {