Ticket #17659: django-logentry-index.diff
File django-logentry-index.diff, 900 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/models.py
19 19 action_time = models.DateTimeField(_('action time'), auto_now=True) 20 20 user = models.ForeignKey(User) 21 21 content_type = models.ForeignKey(ContentType, blank=True, null=True) 22 object_id = models.TextField(_('object id'), blank=True, null=True )23 object_repr = models.CharField(_('object repr'), max_length=200 )22 object_id = models.TextField(_('object id'), blank=True, null=True, db_index=True) 23 object_repr = models.CharField(_('object repr'), max_length=200, db_index=True) 24 24 action_flag = models.PositiveSmallIntegerField(_('action flag')) 25 25 change_message = models.TextField(_('change message'), blank=True) 26 26 objects = LogEntryManager()