@staticmethod
    def survey_question_list_duplicate(item):

        data = item.data
        tid = data.get("template_id")
        qid = data.get("question_id")
        sid = data.get("section_id")
        table = item.table
        query = (table.template_id == tid) & \
                (table.question_id == qid) & \
                (table.section_id == sid)
        duplicate = current.db(query).select(table.id,
                                             limitby=(0, 1)).first()
        if duplicate:
            item.id = duplicate.id
            item.method = item.METHOD.UPDATE

# =============================================================================
A test for LP bug #825024 -- glance client currently
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3SurveyQuestionModel.survey_question_list_duplicate--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_misc.py/TestMiscellaneous.test_api_treats_size_as_a_normal_property