Jonas Havelka
2 years ago
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||
|
from django.core.management.base import BaseCommand |
||||
|
import seminar.models as m |
||||
|
|
||||
|
|
||||
|
class Command(BaseCommand): |
||||
|
help = "Všem deadlinům se zveřejněnou výsledkovkou vygeneruj výsledkovku" |
||||
|
|
||||
|
def handle(self, *args, **options): |
||||
|
for deadline in m.Deadline.objects.filter(verejna_vysledkovka=True): |
||||
|
deadline.vygeneruj_vysledkovku() |
||||
|
|
Loading…
Reference in new issue