summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/admin/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py
index 022d20bed9..7144c0b20b 100644
--- a/django/contrib/admin/models.py
+++ b/django/contrib/admin/models.py
@@ -9,7 +9,7 @@ DELETION = 3
class LogEntryManager(models.Manager):
def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''):
- e = self.model(None, None, user_id, content_type_id, object_id, object_repr[:200], action_flag, change_message)
+ e = self.model(None, None, user_id, content_type_id, str(object_id), object_repr[:200], action_flag, change_message)
e.save()
class LogEntry(models.Model):