mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #19354 -- Do not assume usermodel.pk == usermodel.id
Thanks markteisman at hotmail.com for the report.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user