Compare commits
No commits in common. "f6cb669277d2143338b67f64475e804a85f9378b" and "0956b0780aa56a028c8bc6a3b295436aab28ddda" have entirely different histories.
f6cb669277
...
0956b0780a
2 changed files with 2 additions and 3 deletions
|
|
@ -17,8 +17,7 @@
|
|||
<p>Řešitelé:
|
||||
{% for r in object.resitele.all %}
|
||||
{{ r }}
|
||||
{# DjangoTemplates neumí spojovat řetězce (https://stackoverflow.com/q/4386168), tak si necháváme vyrobit subject mailu ve view. #}
|
||||
({% maillink r.osoba.email to=r.osoba.email subject=predmetmailu %}){% if forloop.revcounter0 != 0 %}, {% endif %}
|
||||
({% maillink r.osoba.email to=r.osoba.email subject=mailsubject %}){% if forloop.revcounter0 != 0 %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% else %}
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class DetailReseniView(DetailView):
|
|||
ctx["hodnoceni"] = detaily_hodnoceni
|
||||
|
||||
# Subject případného mailu (template neumí použitelně spojovat řetězce: https://stackoverflow.com/q/4386168)
|
||||
ctx["predmetmailu"] = "Oprava řešení M&M "+self.reseni.problem.first().hlavni_problem.nazev
|
||||
ctx["mailsubject"] = "Oprava řešení M&M "+self.reseni.problem.first().hlavni_problem.nazev
|
||||
return ctx
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in a new issue