Druhá várka zarovnání tabulátory
This commit is contained in:
parent
91cf18fa9e
commit
4a0e8e61be
3 changed files with 11 additions and 11 deletions
|
@ -12,7 +12,7 @@ from .helpers import LoginRequiredAjaxMixin
|
||||||
class SkolaAutocomplete(autocomplete.Select2QuerySetView):
|
class SkolaAutocomplete(autocomplete.Select2QuerySetView):
|
||||||
""" View k :mod:`dal.autocomplete` pro vyhledávání škol hlavně při registraci. """
|
""" View k :mod:`dal.autocomplete` pro vyhledávání škol hlavně při registraci. """
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
# Don't forget to filter out results depending on the visitor !
|
# Don't forget to filter out results depending on the visitor !
|
||||||
qs = m.Skola.objects.all()
|
qs = m.Skola.objects.all()
|
||||||
if self.q:
|
if self.q:
|
||||||
words = self.q.split(' ') #TODO re split podle bileho znaku
|
words = self.q.split(' ') #TODO re split podle bileho znaku
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -686,7 +686,7 @@ def formularOKView(request, text=''):
|
||||||
]
|
]
|
||||||
context = {
|
context = {
|
||||||
'odkazy': odkazy,
|
'odkazy': odkazy,
|
||||||
'text': text,
|
'text': text,
|
||||||
}
|
}
|
||||||
return render(request, template_name, context)
|
return render(request, template_name, context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue