#NEWLINE# @ classmethod #NEWLINE# def _update_or_create( cls , unique_fields , **kwargs ) : #NEWLINE# #INDENT# modified_object = unique_fields . pop ( cls . MODIFIED_OBJECT_FIELD ) #NEWLINE# content_type = ct_models . ContentType . objects . get_for_model ( modified_object . __class__ ) #NEWLINE# content_id = modified_object . id #NEWLINE# unique_fields [ 'content_type' ] = content_type #NEWLINE# unique_fields [ 'content_id' ] = content_id #NEWLINE# return super ( GenericLastTransitionLog , cls ) . _update_or_create ( unique_fields , ** kwargs )