hmarr/mongoengine — Issue #450: select_related doesn't work...
Author: ChangMin
Created: 2012-03-02 16:00:52+00:00
State: open

I'm a newbie for django and mongoengine..
so I'm not sure my code is correct on this issue..

class Example(Document):
member = ReferenceField(Members)

query = Example.objects().select_related(max_depth=0)

should not query variable have member field? so that when I code

query.member.name ---> None

but the result would be the member's name like Simson..

In my real application, I don't want to use dereference.. even though the class(Document) has ReferenceField
nor I want to use "only()", "exclude" methods..

How can I make mongoengine not use dereference even though the class(Document) has its own ReferenceField?

(I just implemented ReferenceField for the future so as to use it one day.. but not now)