database/survey_models.py
def format_survey_for_study(self):
        """
        Returns a dict with the values of the survey fields for download to the app
        """
        survey_dict = self.as_unpacked_native_python()
        # Make the dict look like the old Mongolia-style dict that the frontend is expecting
        survey_dict.pop('id')
        survey_dict.pop('deleted')
        survey_dict['_id'] = survey_dict.pop('object_id')

        # the old timings object does need to be provided
        from database.schedule_models import WeeklySchedule
        survey_dict['timings'] = WeeklySchedule.export_survey_timings(self)

        return survey_dict

        Returns a dict with the values of the survey fields for download to the app
        
Returns a dict with the values of the survey fields for download to the app
Returns a dict with the values of the survey fields for download to the app
def format_survey_for_study(self):
        survey_dict = self.as_unpacked_native_python()
        survey_dict.pop('id')
        survey_dict.pop('deleted')
        survey_dict['_id'] = survey_dict.pop('object_id')
        from database.schedule_models import WeeklySchedule
        survey_dict['timings'] = WeeklySchedule.export_survey_timings(self)
        return survey_dict
def format_survey_for_study ( self ) : survey_dict = self . as_unpacked_native_python ( ) survey_dict . pop ( 'id' ) survey_dict . pop ( 'deleted' ) survey_dict [ '_id' ] = survey_dict . pop ( 'object_id' ) from database . schedule_models import WeeklySchedule survey_dict [ 'timings' ] = WeeklySchedule . export_survey_timings ( self ) return survey_dict
Returns a dict with the values of the survey fields for download to the app
Returns a dict with the values of the survey fields for download to the app
"""
        Returns a dict with the values of the survey fields for download to the app
        """ # Make the dict look like the old Mongolia-style dict that the frontend is expecting # the old timings object does need to be provided
self