get_and_delete_messages is called in auth context processor for every request
|Reported by:||tangerine||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
user.get_and_delete_messages() is called irrespective of whether the request is for a page within the admin interface or not. Although it's typically only one extraneous query, it is extra overhead which is unnecessary for the vast majority of requests. Maybe it could be moved out in to a admin context processor which simply adds messages to the context?