#NEWLINE# def EventsByType( self , year = None , **kw ) : #NEWLINE# #INDENT# kw . update ( master_instance = self ) #NEWLINE# if ( self is None ) : #NEWLINE# #INDENT# year = settings . SITE . today ( ) . year #NEWLINE# #UNINDENT# kw . update ( filter = models . Q ( date__year = year ) ) #NEWLINE# return EventsByType . request ( ** kw )