#NEWLINE# @ classmethod #NEWLINE# def from_object( cls , obj ) : #NEWLINE# #INDENT# '\n        Updates values from the given object.\n        ' #NEWLINE# instance = cls ( ** dict ( ( ( field , getattr ( obj , field ) ) for field in get_translation_field_names ( ) ) ) ) #NEWLINE# instance . is_new = False #NEWLINE# return instance