modilabs/formhub — pull request #422 by TomCoder (2012-06-04 00:01:03+00:00)
Title: Removed signal that saved to mongo before attachments were saved.

Moved that functionality to create_instance

We do away with this signal(https://github.com/modilabs/formhub/blob/master/odk_viewer/models/parsed_instance.py#L222) as it causes the dict for mongo to be built
before attachments are saved. We cannot also add the signal to attachment
model as on instance may have many attachments and we can only create_dict for
mongo once all attachments have been saved.

fixes #386
fixes #420