Updated documentation for abstract reference changes
This commit is contained in:
parent
f96e68cd11
commit
aa9d596930
1
AUTHORS
1
AUTHORS
@ -230,3 +230,4 @@ that much better:
|
|||||||
* Amit Lichtenberg (https://github.com/amitlicht)
|
* Amit Lichtenberg (https://github.com/amitlicht)
|
||||||
* Lars Butler (https://github.com/larsbutler)
|
* Lars Butler (https://github.com/larsbutler)
|
||||||
* George Macon (https://github.com/gmacon)
|
* George Macon (https://github.com/gmacon)
|
||||||
|
* Ashley Whetter (https://github.com/AWhetter)
|
||||||
|
@ -6,6 +6,7 @@ Changes in 0.10.2
|
|||||||
=================
|
=================
|
||||||
- Allow shard key to point to a field in an embedded document. #551
|
- Allow shard key to point to a field in an embedded document. #551
|
||||||
- Allow arbirary metadata in fields. #1129
|
- Allow arbirary metadata in fields. #1129
|
||||||
|
- ReferenceFields now support abstract document types. #837
|
||||||
|
|
||||||
Changes in 0.10.1
|
Changes in 0.10.1
|
||||||
=======================
|
=======================
|
||||||
|
@ -896,6 +896,10 @@ class ReferenceField(BaseField):
|
|||||||
or as the :class:`~pymongo.objectid.ObjectId`.id .
|
or as the :class:`~pymongo.objectid.ObjectId`.id .
|
||||||
:param reverse_delete_rule: Determines what to do when the referring
|
:param reverse_delete_rule: Determines what to do when the referring
|
||||||
object is deleted
|
object is deleted
|
||||||
|
|
||||||
|
.. note ::
|
||||||
|
A reference to an abstract document type is always stored as a
|
||||||
|
:class:`~pymongo.dbref.DBRef`, regardless of the value of `dbref`.
|
||||||
"""
|
"""
|
||||||
if not isinstance(document_type, basestring):
|
if not isinstance(document_type, basestring):
|
||||||
if not issubclass(document_type, (Document, basestring)):
|
if not issubclass(document_type, (Document, basestring)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user