Create a better interface for getting/setting the effective level of contrib.messages
|Reported by:||Chris Beaven||Owned by:||Chris Beaven|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As Jeremy Dunck reported, the API to set the effective messaging level is awkward:
# Change the messages level to ensure the debug message is added. messages.get_messages(request).level = messages.DEBUG
The general consensus seems to be having two methods called 'get_level' and 'set_level'.