From 8062ebbb188896a7ebdb5791cda769f54cce6fd3 Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Thu, 12 Apr 2007 17:53:21 +0000 Subject: [PATCH] boulder-oracle-sprint: Fixed bug where admin interface would insert arbitrary primary key data into a TextField, causing an Oracle error in some instances. git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5000 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):