Closed lawrlee closed 11 years ago
Can you please create a test which was working on previous version and is failing now?
additional test functions in 45003777feccc4112baf4b92588466b6447cdd7a
FYI, I will not have for some time time to check this. I am really busy for few weeks. Feel free to remind me by commenting here.
OK. I don't understand why is schema provided in parent document's schema not enough? Why do you need to access schemas for subdocuments directly?
With django-tastypie-mongoengine 0.4 and django-tastypie 0.9.14, I am trying to expose the schema for a resource created from a DynamicEmbeddedDocument. This used to work in 0.3+0.9.11 but now throws an
AttributeError: 'ListQuerySet' object has no attribute '_document'
error, presumably because the resource returns a ListQuerySet object that doesn't get converted to a MongoEngineListResource by the EmbeddedListField.For example, if I have the resources:
How would I get the schema for EmbeddedFooResource?
api/v1/foo/schema/
isn't working for me andapi/v1/bar/<_id>/1/foo/schema/
isn't possible. Thanks!