Compare commits
No commits in common. "136aca5b831662d89e7a9932cce271563fb2611c" and "de0f0d304087968114e6deb441c2ce473c5835d2" have entirely different histories.
136aca5b83
...
de0f0d3040
2 changed files with 6 additions and 3 deletions
|
@ -58,8 +58,7 @@ Zobrazit:
|
||||||
|
|
||||||
function updatuj_pocty_stavu() {
|
function updatuj_pocty_stavu() {
|
||||||
const pocty_stavu = {};
|
const pocty_stavu = {};
|
||||||
for (const stav of Object.keys(spany_s_pocty_stavu)) pocty_stavu[stav] = 0;
|
for (let oprava of Object.values(opravy)) {
|
||||||
for (const oprava of Object.values(opravy)) {
|
|
||||||
if (!(oprava.status in pocty_stavu)) pocty_stavu[oprava.status] = 0;
|
if (!(oprava.status in pocty_stavu)) pocty_stavu[oprava.status] = 0;
|
||||||
pocty_stavu[oprava.status] += 1;
|
pocty_stavu[oprava.status] += 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
|
from django.shortcuts import get_object_or_404, render
|
||||||
from django.views import generic
|
from django.views import generic
|
||||||
|
from django.conf import settings
|
||||||
|
from django.http import HttpResponseForbidden
|
||||||
from django.db.models import Count,Q
|
from django.db.models import Count,Q
|
||||||
|
|
||||||
from .models import Oprava, KorekturovanePDF, KorekturaTag
|
from .utils import send_email_notification_komentar
|
||||||
|
from .models import Oprava, Komentar, KorekturovanePDF, Organizator, KorekturaTag
|
||||||
|
|
||||||
class KorekturyListView(generic.ListView):
|
class KorekturyListView(generic.ListView):
|
||||||
model = KorekturovanePDF
|
model = KorekturovanePDF
|
||||||
|
|
Loading…
Reference in a new issue