|  |  | @ -1118,10 +1118,12 @@ class DocumentoAnexadoEmLoteView(PermissionRequiredMixin, FilterView): | 
			
		
	
		
			
				
					|  |  |  |             return context | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         qr = self.request.GET.copy() | 
			
		
	
		
			
				
					|  |  |  |         if not len(qr): | 
			
		
	
		
			
				
					|  |  |  |             context['temp_object_list'] = [] | 
			
		
	
		
			
				
					|  |  |  |             context['object_list'] = [] | 
			
		
	
		
			
				
					|  |  |  |         else: | 
			
		
	
		
			
				
					|  |  |  |             context['temp_object_list'] = context['object_list'].order_by( | 
			
		
	
		
			
				
					|  |  |  |             'numero', '-ano' | 
			
		
	
		
			
				
					|  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |             'numero', '-ano') | 
			
		
	
		
			
				
					|  |  |  |             context['object_list'] = [] | 
			
		
	
		
			
				
					|  |  |  |             for obj in context['temp_object_list']: | 
			
		
	
		
			
				
					|  |  |  |                 if not obj.pk == int(context['root_pk']): | 
			
		
	
	
		
			
				
					|  |  | @ -1151,6 +1153,7 @@ class DocumentoAnexadoEmLoteView(PermissionRequiredMixin, FilterView): | 
			
		
	
		
			
				
					|  |  |  |                         if not ciclico: | 
			
		
	
		
			
				
					|  |  |  |                             context['object_list'].append(obj) | 
			
		
	
		
			
				
					|  |  |  |          | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         context['numero_res'] = len(context['object_list']) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else '' | 
			
		
	
	
		
			
				
					|  |  | 
 |