#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.

Change History (1)

comment:1 by Tim Graham, 20 months ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top