#NEWLINE# def get_field_for_proxy( pref_proxy ) : #NEWLINE# #INDENT# 'Returns a field object instance for a given PrefProxy object.' #NEWLINE# field = { #NEWLINE# #INDENT# bool : models . BooleanField , #NEWLINE# int : models . IntegerField , #NEWLINE# float : models . FloatField , #NEWLINE# datetime : models . DateTimeField , #NEWLINE# #UNINDENT# } . get ( type ( pref_proxy . default ) , models . TextField ) ( ) #NEWLINE# update_field_from_proxy ( field , pref_proxy ) #NEWLINE# return field