wlanslovenija / django-tastypie-mongoengine

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

embedded document schema tests #46

Closed lawrlee closed 11 years ago

lawrlee commented 11 years ago

I added a few tests to test_basic.py and exposed the appropriate resources in urls.py. Again, I'm not sure if your original intent was to allow EmbeddedDocuments' schema to be exposed, but it did work in 0.3 and not in 0.4.

My use case is that I'm providing nested forms to enter information into documents with embedded documents. I am using the schema to drive the form display by providing field names, whether the field is required, field type, etc. Without the schema available, if the embedded list field is empty, there is no way to know the embedded document structure.

mitar commented 11 years ago

But schema of embedded documents is already provided in top-level schema?