wlanslovenija / django-tastypie-mongoengine

MongoEngine support for django-tastypie.
Other
73 stars 59 forks source link

BUGFIX: The 'attribute' argument of EmbeddedListField was ignored. #75

Closed yjaaidi closed 10 years ago

yjaaidi commented 10 years ago

The 'attribute' argument of EmbeddedListField was ignored.

For example, in the following situation:

class UserResource(resources.MongoEngineResource):

children = fields.EmbeddedListField(
    of=WishResource,
    attribute='childList',
    full=True,
    null=True
)

This will try to acces the 'children' attribute instead of 'childList'.

mitar commented 10 years ago

Hm hm, is using instance_name even correct to begin with? But thanks, merging.