Ticket #5246: mssql_django_admin.patch

File mssql_django_admin.patch, 766 bytes (added by Filip Wasilewski <filip.wasilewski@…>, 8 years ago)

MSSQL 2000: Fix for "History button" in the Admin interface -- second option.

  • contrib/admin/models.py

     
    1717    action_time = models.DateTimeField(_('action time'), auto_now=True)
    1818    user = models.ForeignKey(User)
    1919    content_type = models.ForeignKey(ContentType, blank=True, null=True)
    20     object_id = models.TextField(_('object id'), blank=True, null=True)
     20    object_id = models.CharField(_('object id'), blank=True, null=True, max_length=255)
    2121    object_repr = models.CharField(_('object repr'), max_length=200)
    2222    action_flag = models.PositiveSmallIntegerField(_('action flag'))
    2323    change_message = models.TextField(_('change message'), blank=True)
Back to Top