Fixed AttributeError: 'User' object has no attribute 'message_set', which was caused by django version upgrade.

Hi bartTC,

as the subject, please redirect to https://docs.djangoproject.com/en/dev/ref/contrib/messages/ for the detail.