|
@ -474,15 +474,15 @@ def get_text(): |
|
|
|
|
|
|
|
|
def gen_dlouhe_tema(rnd, organizatori, rocnik, nazev, obor, kod): |
|
|
def gen_dlouhe_tema(rnd, organizatori, rocnik, nazev, obor, kod): |
|
|
tema = Tema.objects.create( |
|
|
tema = Tema.objects.create( |
|
|
nazev=nazev, |
|
|
nazev=nazev, |
|
|
stav=Problem.STAV_ZADANY, |
|
|
stav=Problem.STAV_ZADANY, |
|
|
zamereni="M", |
|
|
zamereni="M", |
|
|
autor=rnd.choice(organizatori), |
|
|
autor=rnd.choice(organizatori), |
|
|
garant=rnd.choice(organizatori), |
|
|
garant=rnd.choice(organizatori), |
|
|
kod=str(kod), |
|
|
kod=str(kod), |
|
|
tema_typ=rnd.choice(Tema.TEMA_CHOICES)[0], |
|
|
tema_typ=rnd.choice(Tema.TEMA_CHOICES)[0], |
|
|
rocnik=rocnik, |
|
|
rocnik=rocnik, |
|
|
abstrakt = lorem.paragraph() |
|
|
abstrakt = lorem.paragraph() |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
# Generování struktury k tématu |
|
|
# Generování struktury k tématu |
|
|