#NEWLINE# def sync_log_list( request ) : #NEWLINE# #INDENT# sync_logs = SyncLog . objects . order_by ( '-start_time' ) #NEWLINE# paginator = Paginator ( sync_logs , 24 ) #NEWLINE# page = request . GET . get ( 'page' ) #NEWLINE# try : #NEWLINE# #INDENT# sync_logs = paginator . page ( sync_logs ) #NEWLINE# #UNINDENT# except PageNotAnInteger : #NEWLINE# #INDENT# sync_logs = paginator . page ( 1 ) #NEWLINE# #UNINDENT# except EmptyPage : #NEWLINE# #INDENT# sync_logs = paginator . page ( paginator . num_pages ) #NEWLINE# #UNINDENT# return render ( request , 'sync/log_list.html' , { #NEWLINE# #INDENT# 'sync_logs' : sync_logs , #NEWLINE# #UNINDENT# } )