Django

Code

Changeset 5000

Show
Ignore:
Timestamp:
04/12/07 12:53:21 (2 years ago)
Author:
bouldersprinters
Message:

boulder-oracle-sprint: Fixed bug where admin interface would insert arbitrary primary key data into a TextField?, causing an Oracle error in some instances.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/boulder-oracle-sprint/django/contrib/admin/models.py

    r4729 r5000  
    1010class LogEntryManager(models.Manager): 
    1111    def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''): 
    12         e = self.model(None, None, user_id, content_type_id, object_id, object_repr[:200], action_flag, change_message) 
     12        e = self.model(None, None, user_id, content_type_id, str(object_id), object_repr[:200], action_flag, change_message) 
    1313        e.save() 
    1414