(self)
return self.STATE_TO_DOC_TYPE.get(self.state, 'XFormInstance')
Comparability with couch forms
Comparability with couch forms
Comparability with couch forms
def doc_type(self):
        """Comparability with couch forms"""
        if self.is_deleted:
            return 'XFormInstance' + DELETED_SUFFIX
        return self.STATE_TO_DOC_TYPE.get(self.state, 'XFormInstance')
def doc_type ( self ) : if self . is_deleted : return 'XFormInstance' + DELETED_SUFFIX return self . STATE_TO_DOC_TYPE . get ( self . state , 'XFormInstance' )