diff --git a/tests/testapp/models/basic.py b/tests/testapp/models/basic.py index 9b9b8082a29..120c356765f 100644 --- a/tests/testapp/models/basic.py +++ b/tests/testapp/models/basic.py @@ -65,4 +65,9 @@ ArticleDoesNotExist: Article does not exist for {'id__exact': 2} >>> articles.get_object(pk=1)
+# Model instances of the same type and same ID are considered equal. +>>> a = articles.get_object(pk=1) +>>> b = articles.get_object(pk=1) +>>> a == b +True """