﻿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
22868	Activated language not respected in post_save signal called during custom management command	Mike	nobody	"This one is a little tricky to explain. My problem seems to be this:

 * run custom management command
 * activate language from settings, which is ""en-gb""
 * dynamically import module for a Django app and invoke custom bootstrap function
 * calling get_language() in bootstrap function returns ""en-gb""
 * bootstrap function calls loaddata management command (using management.call_command)
 * data created in DB, which triggers a post_save signal
 * get_language() in post_save signal always returns ""en-us""

I don't know if the signal is invoked in a separate thread but I would expect get_language to return the newly activated language when called in a post_save signal. Or am I missing something? Thanks
"	Bug	closed	Core (Management commands)	1.6	Normal	duplicate			Accepted	0	0	0	0	0	0
