#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# self . __dict__ = self . __state #NEWLINE# if ( not len ( self . sizes ) ) : #NEWLINE# #INDENT# sizes = PhotoSize . objects . all ( ) #NEWLINE# for size in sizes : #NEWLINE# #INDENT# self . sizes [ size . name ] = size