peterbe / django-mongokit

Bridging Django to MongoDB with the MongoKit ODM (Object Document Mapper)
Other
122 stars 20 forks source link

How to use mongokit dbrefs with django_mongokit #21

Open ambasta opened 10 years ago

ambasta commented 10 years ago

Hi,

With pymongo I can specify: db.add_son_manipulator(NamespaceInjector()) db.add_son_manipulator(AutoReference(db))

and then set dbref as: db.collection({'attr': db.collection_alt.find_one({params}), ...}).save()

How do I achieve the same with django_mongokit