Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#7988 closed (fixed)

django/views/generic.create_update.py imports warning instead of warnings

Reported by: richardh Owned by: nobody
Component: Generic views Version: dev
Severity: Keywords: follow
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

deprecate_follow(follow) (line 10) in django/views/generic.create_update.py appears to be trying to use a warning module.
I think this should be the warnings module.
Patch for the two lines affected attached.
Spotted this trying to read (and understand) code and haven't run a test with it.

Attachments (1)

create_update.diff (706 bytes ) - added by richardh 16 years ago.
warning to warnings patch

Download all attachments as: .zip

Change History (3)

by richardh, 16 years ago

Attachment: create_update.diff added

warning to warnings patch

comment:1 by Gary Wilson, 16 years ago

Resolution: fixed
Status: newclosed

(In [8105]) Fixed #7988 -- Corrected import of the warnings module, thanks richardh.

comment:2 by Jacob, 13 years ago

milestone: 1.0 beta

Milestone 1.0 beta deleted

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