mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #19354 -- Do not assume usermodel.pk == usermodel.id
Thanks markteisman at hotmail.com for the report.
This commit is contained in:
parent
d913a8b412
commit
0eeae15056
9 changed files with 14 additions and 14 deletions
|
@ -618,7 +618,7 @@ Output the contents of the block if the two arguments equal each other.
|
|||
|
||||
Example::
|
||||
|
||||
{% ifequal user.id comment.user_id %}
|
||||
{% ifequal user.pk comment.user_id %}
|
||||
...
|
||||
{% endifequal %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue