Skip to content

Commit aa9d596

Browse files
committed
Updated documentation for abstract reference changes
1 parent f96e68c commit aa9d596

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,4 @@ that much better:
230230
* Amit Lichtenberg (https://github.com/amitlicht)
231231
* Lars Butler (https://github.com/larsbutler)
232232
* George Macon (https://github.com/gmacon)
233+
* Ashley Whetter (https://github.com/AWhetter)

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes in 0.10.2
66
=================
77
- Allow shard key to point to a field in an embedded document. #551
88
- Allow arbirary metadata in fields. #1129
9+
- ReferenceFields now support abstract document types. #837
910

1011
Changes in 0.10.1
1112
=======================

mongoengine/fields.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,10 @@ def __init__(self, document_type, dbref=False,
896896
or as the :class:`~pymongo.objectid.ObjectId`.id .
897897
:param reverse_delete_rule: Determines what to do when the referring
898898
object is deleted
899+
900+
.. note ::
901+
A reference to an abstract document type is always stored as a
902+
:class:`~pymongo.dbref.DBRef`, regardless of the value of `dbref`.
899903
"""
900904
if not isinstance(document_type, basestring):
901905
if not issubclass(document_type, (Document, basestring)):

0 commit comments

Comments
 (0)