Add documentation about get_messages.

Refs https://code.djangoproject.com/ticket/21591