Django

Code

Changeset 7058

Show
Ignore:
Timestamp:
02/02/08 19:37:29 (10 months ago)
Author:
mtredinnick
Message:

Fixed #6479 -- Use settings.SESSION_COOKIE_NAME instead of hard-coded "sessionid" in the test client. Thanks, Bastian Kleineidam.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/test/client.py

    r6662 r7058  
    263263 
    264264            # Save the session values 
    265             request.session.save()    
     265            request.session.save() 
    266266 
    267267            return True 
     
    275275        """ 
    276276        session = __import__(settings.SESSION_ENGINE, {}, {}, ['']).SessionStore() 
    277         session.delete(session_key=self.cookies['sessionid'].value) 
     277        session.delete(session_key=self.cookies[settings.SESSION_COOKIE_NAME].value) 
    278278        self.cookies = SimpleCookie()