mongoengine icon indicating copy to clipboard operation
mongoengine copied to clipboard

Reloading documents is not working on classes which has references for abstract classes

Open BukinPK opened this issue 5 years ago • 1 comments

Reloading documents is not working on classes which has references for abstract classes.

import mongoengine as me


me.connect('test')

class Place(me.Document):
    meta = {'abstract': True}

class Inventory(Place):
    pass

class Item(Place):
    place = me.ReferenceField(Place)


inventory = Inventory().save()

item = Item(place=inventory).save()

item.reload()

BukinPK avatar Apr 06 '20 18:04 BukinPK

I have the same issue right now. Have you found a solution or workaround?

lukasloetkolben avatar Oct 22 '21 09:10 lukasloetkolben