#NEWLINE# def init_form( self ) : #NEWLINE# #INDENT# today = datetime . date . today ( ) #NEWLINE# first = datetime . date ( day = 1 , month = today . month , year = today . year ) #NEWLINE# if ( today . day in range ( 5 ) ) : #NEWLINE# #INDENT# self . end = ( first - datetime . timedelta ( days = 1 ) ) #NEWLINE# self . start = datetime . date ( day = 1 , month = first . end . month , year = self . end . year ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . end = today #NEWLINE# self . start = first #NEWLINE# #UNINDENT# return ( self . start , self . end )