#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'month' ] = ( int ( self . kwargs . get ( 'month' ) ) if ( 'month' in self . kwargs ) else None ) #NEWLINE# kwargs [ 'year' ] = ( int ( self . kwargs . get ( 'year' ) ) if ( 'year' in self . kwargs ) else None ) #NEWLINE# if kwargs [ 'year' ] : #NEWLINE# #INDENT# kwargs [ 'archive_date' ] = now ( ) . replace ( kwargs [ 'year' ] , ( kwargs [ 'month' ] or 1 ) , 1 ) #NEWLINE# #UNINDENT# context = super ( PostArchiveView , self ) . get_context_data ( ** kwargs ) #NEWLINE# context [ 'TRUNCWORDS_COUNT' ] = get_setting ( 'POSTS_LIST_TRUNCWORDS_COUNT' ) #NEWLINE# return context