import Queue
from elixir import Field, Unicode, Entity

from astral.models.base import BaseEntityMixin

import logging
log = logging.getLogger(__name__)


EVENT_QUEUE = Queue.Queue()


class Event(BaseEntityMixin, Entity):
    message = Field(Unicode(96))

    def __init__(self, *args, **kwargs):
        super(Event, self).__init__(*args, **kwargs)
        EVENT_QUEUE.put(self)

    def __repr__(self):
        return u'<Event %s>' % self.message

@@ -291,16 +291,71 @@
 wargs):%0A
+        kwargs%5B'message'%5D = unicode(kwargs%5B'message'%5D)%0A
         

Convert JSON to unicode before saving to clear up a SQLAlchemy warning.