Django

Code

Ticket #7988 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

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

Reported by: richardh Assigned to: nobody
Milestone: 1.0 beta Component: Generic views
Version: SVN Keywords: follow
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

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

create_update.diff (0.7 kB) - added by richardh on 07/27/08 08:21:48.
warning to warnings patch

Change History

07/27/08 08:21:48 changed by richardh

  • attachment create_update.diff added.

warning to warnings patch

07/27/08 12:24:35 changed by gwilson

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #7988 (django/views/generic.create_update.py imports warning instead of warnings)




Change Properties
Action