# django__django-15347
# Loki Mode Multi-Agent Patch
# Attempts: 1

--- a/django/contrib/messages/storage/cookie.py
+++ b/django/contrib/messages/storage/cookie.py
@@ -17,7 +17,7 @@ class MessageEncoder(json.JSONEncoder):
     def default(self, obj):
         if isinstance(obj, Message):
             # Using 0/1 here instead of False/True to produce more compact json
-            is_safedata = 1 if isinstance(obj.message, SafeData) else 0
+            is_safedata = 1 if isinstance(obj.message, SafeData) else 0
             message = [self.message_key, is_safedata, obj.level, obj.message]
             if obj.extra_tags is not None:
                 message.append(obj.extra_tags)