Korektury: stahuj opravy jen 1x pro každou stranu
oprava Marblem nalezeného bugu
This commit is contained in:
parent
856474a8dd
commit
4dd5ca6e9f
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ class KorekturyView(generic.TemplateView):
|
||||||
else:
|
else:
|
||||||
zasluhy[k.autor]=1
|
zasluhy[k.autor]=1
|
||||||
|
|
||||||
strany = opravy.values('strana')
|
strany = set(o.strana for o in opravy)
|
||||||
opravy_na_stranu = [{'strana':s['strana'],'op_id':opravy.filter(strana=s['strana'])} for s in strany]
|
opravy_na_stranu = [{'strana': s, 'op_id': opravy.filter(strana=s)} for s in strany]
|
||||||
context['opravy_strany'] = opravy_na_stranu
|
context['opravy_strany'] = opravy_na_stranu
|
||||||
|
|
||||||
context['opravy'] = opravy
|
context['opravy'] = opravy
|
||||||
|
|
Loading…
Reference in a new issue