Code

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#20858 closed Bug (fixed)

Tutorial 2 in the Django documentation has an invalid import

Reported by: AtomicSpark Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: yes UI/UX: no

Description

The third block of code in Tutorial 2's Customize the admin change list section has an invalid import. The previous version of the page (v1.5) left off imports entirely (which is the route that I took with the patch), but the offending line of code is the following:

from polls.models import Poll

My patch is based off of the master branch for Django.

Attachments (1)

patch.diff (541 bytes) - added by AtomicSpark 11 months ago.

Download all attachments as: .zip

Change History (3)

Changed 11 months ago by AtomicSpark

comment:1 Changed 11 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In b278f7478d37d3620e5addf7cc2070bc38c10871:

Fixed #20858 -- Removed erroneous import in tutorial 2.

Thanks AtomicSpark.

comment:2 Changed 11 months ago by Tim Graham <timograham@…>

In 01a96042740788aee1c371eb191113f2700d3ccc:

[1.6.x] Fixed #20858 -- Removed erroneous import in tutorial 2.

Thanks AtomicSpark.

Backport of b278f7478d from master

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.