Opened 8 years ago

Closed 8 years ago

Last modified 5 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: master
Severity: Keywords: follow
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 8 years ago.
warning to warnings patch

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by richardh

Attachment: create_update.diff added

warning to warnings patch

comment:1 Changed 8 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

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

comment:2 Changed 5 years ago by Jacob

milestone: 1.0 beta

Milestone 1.0 beta deleted

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