[Django] #34476: Typo in Writing your first Django app, part 5 - assertQuerySetEqual

4 views
Skip to first unread message

Django

unread,
Apr 8, 2023, 10:28:17 AM4/8/23
to django-...@googlegroups.com
#34476: Typo in Writing your first Django app, part 5 - assertQuerySetEqual
-----------------------------------------+------------------------
Reporter: anlx-sw | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-----------------------------------------+------------------------
I just try to follow the Django tutorial "Writing your first Django app".
In part 5 - section "Testing our new view" there is a typo in the code
sample.

The tutorial lists sample code for the "polls/test.py" using the function
name assertQuerySetEqual - this should be assertQuerysetEqual . (Wrong
case for the S of Set).

The sample code is not working without fixing this error.

--
Ticket URL: <https://code.djangoproject.com/ticket/34476>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 8, 2023, 10:38:42 AM4/8/23
to django-...@googlegroups.com
#34476: Typo in Writing your first Django app, part 5 - assertQuerySetEqual
-------------------------------+--------------------------------------
Reporter: anlx-sw | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 4.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

You're using the incorrect version of the tutorial for the version of
Django you have installed. The parameter was renamed to
`assertQuerySetEqual` in Django 4.2

--
Ticket URL: <https://code.djangoproject.com/ticket/34476#comment:1>

Reply all
Reply to author
Forward
0 new messages