mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
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
This commit is contained in:
parent
be1357a496
commit
8062ebbb18
@ -9,7 +9,7 @@ DELETION = 3
|
|||||||
|
|
||||||
class LogEntryManager(models.Manager):
|
class LogEntryManager(models.Manager):
|
||||||
def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''):
|
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()
|
e.save()
|
||||||
|
|
||||||
class LogEntry(models.Model):
|
class LogEntry(models.Model):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user