#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# 'Migrate TimeSlots to set .user' #NEWLINE# for obj in orm [ 'projects.TaskTimeSlot' ] . objects . all ( ) : #NEWLINE# #INDENT# if orm . object_ptr . creator : #NEWLINE# #INDENT# obj . user = obj . object_ptr . creator #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj . user = orm [ 'core.User' ] . objects . all ( ) [ 0 ] #NEWLINE# #UNINDENT# obj . save ( )