#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# signals . post_save . disconnect ( sender = RatedItem , dispatch_uid = 'update_rating_score' ) #NEWLINE# try : #NEWLINE# #INDENT# ctype = ContentType . objects . get ( app_label = 'cab' , model = 'snippet' ) #NEWLINE# #UNINDENT# except ContentType . DoesNotExist : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for rating in orm [ 'cab.rating' ] . objects . all ( ) : #NEWLINE# #INDENT# RatedItem . objects . create ( user_id = rating . user . pk , object_id = rating . snippet . pk , content_type = self , score = rating . score )