First time here? Check out the FAQ!

Revision history  [back]

How to update Django 1.3 messaging to new messaging framework of Django 1.4?

Hi, I'm trying to get askbot working with Django 1.4 and am having some issue with the deprecated user.message_set.create() method, which is what is used for notifying a user when they have been awarded a badge. To update this to the new Django 1.4 messaging framework, you would need to use messages.success(request, msg). However this is called within notify_award_message which is called after saving an Award instance, so there is no reference to request. Any ideas how to get this, and any other areas in askbot code using the old messaging method, working?

How to update Django 1.3 messaging to new messaging framework of Django 1.4?

Hi, I'm trying to get askbot working with Django 1.4 and am having some issue with the deprecated user.message_set.create() method, which is what is used for notifying a user when they have been awarded a badge. To update this to the new Django 1.4 messaging framework, you would need to use messages.success(request, msg). However this is called within notify_award_message which is a called after saving an Award instance, so there is no reference to request. Any ideas how to get this, and any other areas in askbot code using the old messaging method, working?