Merge branch 'opraf' of atrey.karlin.mff.cuni.cz:/akce/MaM/MaMweb/mamweb into opraf
This commit is contained in:
commit
4536924110
2 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
||||||
<!-- Pridat korekturu / komentar !-->
|
<!-- Pridat korekturu / komentar !-->
|
||||||
<form action='' onsubmit='save_scroll(this)' id="commform" method="POST">
|
<form action='' onsubmit='save_scroll(this)' id="commform" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input size="8" name="au" value="{{user.username}}"/>
|
<input size="24" name="au" value="{{user.first_name}} {{user.last_name}}" readonly/>
|
||||||
<input type=submit value="Oprav!"/>
|
<input type=submit value="Oprav!"/>
|
||||||
<button type="button" onclick="close_commform()">Zavřít</button>
|
<button type="button" onclick="close_commform()">Zavřít</button>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -30,7 +30,8 @@ class KorekturyView(generic.TemplateView):
|
||||||
q = request.POST
|
q = request.POST
|
||||||
scroll = q.get('scroll')
|
scroll = q.get('scroll')
|
||||||
autor = q.get('au')
|
autor = q.get('au')
|
||||||
print "autor:" + str(autor)
|
|
||||||
|
print "autor:" + unicode(autor)
|
||||||
if not autor:
|
if not autor:
|
||||||
autor = 'anonym'
|
autor = 'anonym'
|
||||||
if not scroll:
|
if not scroll:
|
||||||
|
|
Loading…
Reference in a new issue