Changed deprecated User.message_set call to use django.contrib.messages