﻿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
35082	AsyncRequestFactory doesn't pass REMOTE_ADDR when set	alex	nobody	"I can describe this bug easily with an example:


{{{
from django.test import RequestFactory, AsyncRequestFactory
factory = RequestFactory()
afactory = AsyncRequestFactory()
request = factory.get(""/customer/details"", REMOTE_ADDR=""127.0.1.1"")
assert request.META[""REMOTE_ADDR""] == ""127.0.1.1""
request = afactory.get(""/customer/details"", REMOTE_ADDR=""127.0.1.1"")
# will fail
assert request.META[""REMOTE_ADDR""] == ""127.0.1.1""
}}}

I think there are some other variables also affected. I tested it only with django 5.0."	Bug	closed	Testing framework	5.0	Normal	invalid			Unreviewed	0	0	0	0	0	0
