django/views/generic.create_update.py imports warning instead of warnings
|Reported by:||richardh||Owned by:||nobody|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
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.