The invention relates to genetically modified human pancreatic progenitor cells, comprising an exogenous nucleic acid molecule encoding TGIF2, for use as a medicament in the treatment of a subject with diabetes, in addition to methods for the production of said cells. The invention also comprises an expression vector encoding TGIF2 for use as a medicament in the treatment of a subject with diabetes.