Ticket #14231: django_session_index.patch

File django_session_index.patch, 609 bytes (added by Joeri Bekker, 14 years ago)
  • django/contrib/sessions/models.py

     
    4545    session_key = models.CharField(_('session key'), max_length=40,
    4646                                   primary_key=True)
    4747    session_data = models.TextField(_('session data'))
    48     expire_date = models.DateTimeField(_('expire date'))
     48    expire_date = models.DateTimeField(_('expire date'), db_index=True)
    4949    objects = SessionManager()
    5050
    5151    class Meta:
Back to Top