﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25699	Allow using test client session handling with custom session apps	Sergey Kolosov	Sergey Kolosov	"This ticket follows up #22634 (which allowed extending database-backed session backends).

While it is now possible to reuse session backend classes, it's not the case for the corresponding parts of the test client.

Namely, in case of having the custom session backend and its corresponding parts (models, middleware, etc) as a separate application, you're unable to use the test client with sessions. The issue is `'django.contrib.sessions'` being hardcoded inside of `_session` and `login()`.

Working that around involves monkey-patching the test client with modified copies of `_session` and `login()`.

I suggest refactoring test client for better reusability (given this would eliminate session app name being hardcoded)."	New feature	closed	Testing framework	dev	Normal	fixed		walt@…	Ready for checkin	1	0	0	0	0	0
