'Ensure that a GenericReferenceField can handle choices on
non-derefenreced (i.e. DBRef) elements'

def test_generic_reference_choices_no_dereference(self):

    class Post(Document, ):
        title = StringField()
    class Bookmark(Document, ):
        bookmark_object = GenericReferenceField(choices=(Post,))
        other_field = StringField()
    Post.drop_collection()
    Bookmark.drop_collection()
    post_1 = Post(title='Behind    the    Scenes    of    the    Pavement    Reunion')
    post_1.save()
    bm = Bookmark(bookmark_object=post_1)
    bm.save()
    bm = Bookmark.objects.get(id=bm.id)
    bm.other_field = 'dummy_change'
    bm.save()
