Rename id variable and mentions to id_
This commit is contained in:
parent
74e5263c88
commit
0edad296fa
4 changed files with 34 additions and 34 deletions
|
|
@ -16,7 +16,7 @@
|
|||
<div class="about">by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}</div>
|
||||
</div>
|
||||
{% if g.user['id'] == post['author_id'] %}
|
||||
<a class="action" href="{{ url_for('blog.update', id=post['id']) }}">Edit</a>
|
||||
<a class="action" href="{{ url_for('blog.update', id_=post['id']) }}">Edit</a>
|
||||
{% endif %}
|
||||
</header>
|
||||
<p class="body">{{ post['body'] }}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue