dimagi/couchforms — pull request #7 by kennknowles (2013-02-06 21:17:58+00:00)
Title: Add get_appropriate_subclass to XFormInstance, dispatched on doc_type

This function enables the fetching of archived / deleted forms, according to the appropriate subclass. This is generally useful, but specifically to support serving archived forms through the API.