Opened 20 months ago
Closed 20 months ago
#34476 closed Bug (invalid)
Typo in Writing your first Django app, part 5 - assertQuerySetEqual
Reported by: | anlx-sw | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
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.
Note:
See TracTickets
for help on using tickets.
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