diff options
| author | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-04-12 17:53:21 +0000 |
|---|---|---|
| committer | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-04-12 17:53:21 +0000 |
| commit | 8062ebbb188896a7ebdb5791cda769f54cce6fd3 (patch) | |
| tree | e9aae043232ef3f2568a8f5da698e7406d9053f0 | |
| parent | be1357a4968f58f0c2f3c27e15f0b256525447ea (diff) | |
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
| -rw-r--r-- | django/contrib/admin/models.py | 2 |
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): |
