Post 1.2 Development code wrongly included in 1.2 doc on Custom Management Commands
|Reported by:||metamemetics||Owned by:||nobody|
|Severity:||Keywords:||Custom Management Commands|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The last line of the 2nd example code block is:
self.stdout.write('Successfully closed poll "%s"\n' % poll_id)
This will not work unless you are using a development repository from within the last week, or else you will get the error 'Command' object has no attribute 'stdout'. Since it is a fairly recent addition I assume it should be only in the development documentation and not the 1.2 documentation.