Merge branch 'stable'
fix vícenásobného stahování oprav na stránku
This commit is contained in:
		
						commit
						1b9fa91061
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -134,8 +134,8 @@ class KorekturyView(generic.TemplateView): | |||
|                 else:  | ||||
|                     zasluhy[k.autor]=1 | ||||
| 
 | ||||
|         strany = opravy.values('strana') | ||||
|         opravy_na_stranu = [{'strana':s['strana'],'op_id':opravy.filter(strana=s['strana'])} for s in strany] | ||||
|         strany = set(o.strana for o in opravy) | ||||
|         opravy_na_stranu = [{'strana': s, 'op_id': opravy.filter(strana=s)} for s in strany] | ||||
|         context['opravy_strany'] = opravy_na_stranu | ||||
|          | ||||
|         context['opravy'] = opravy | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Matěj Kocián
						Matěj Kocián