#NEWLINE# def pagination_test( test ) : #NEWLINE# #INDENT# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# event_index = Page . objects . get ( url_path = '/home/events/' ) #NEWLINE# for i in range ( 100 ) : #NEWLINE# #INDENT# event = EventPage ( title = ( 'Event ' + str ( i ) ) , slug = ( 'event-' + str ( i ) ) , location = 'the moon' , audience = 'public' , cost = 'free' , date_from = '2001-01-01' , live = True ) #NEWLINE# event_index . add_child ( instance = event ) #NEWLINE# #UNINDENT# return test ( * args , ** kwargs ) #NEWLINE# #UNINDENT# return wrapper