#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)
Change History (3)
by , 16 years ago
Attachment: | create_update.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
warning to warnings patch