In my Django site, I am planning on using message_set combined with some fancy UI to warn the user of things like "your operation was completed successfully" or "you have three new messages".
The problem arises when I try to warn an user that is trying to log in that the user/pass he provided are wrong - AnonymousUser, for obvious reasons, does not have a MessageSet.
My question: is my use of message_set good practice (or at least not insane)? Any ideas on how I could workaround for the specific case of wrong login credentials? Should I look to some more complex solution (which I have no idea if it even exists)?