Podle mě funguje…
This commit is contained in:
		
							parent
							
								
									9020f5551d
								
							
						
					
					
						commit
						69e870f958
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -14,7 +14,6 @@ import os | |||
| 
 | ||||
| class KorekturyListView(generic.ListView): | ||||
| 	model = KorekturovanePDF | ||||
| 	# Nefunguje, filtry se vubec nepouziji | ||||
| 	queryset = KorekturovanePDF.objects.annotate( | ||||
| 		k_oprave_cnt=Count('oprava',distinct=True,filter=Q(oprava__status='k_oprave')), | ||||
| 		opraveno_cnt=Count('oprava',distinct=True,filter=Q(oprava__status='opraveno')), | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue