Sets with the prefilled language before starting controllers
TUI client was able to GET() the language before it was set with the prefilled option in production
This commit is contained in:
parent
30745e522f
commit
8201e917c3
|
@ -20,7 +20,8 @@ log = logging.getLogger('system_setup.server.controllers.locale')
|
|||
|
||||
|
||||
class WSLLocaleController(LocaleController):
|
||||
def start(self):
|
||||
def __init__(self, app):
|
||||
super().__init__(app)
|
||||
if self.app.prefillInfo:
|
||||
welcome = self.app.prefillInfo.get('Welcome', {'lang': None})
|
||||
win_lang = welcome.get('lang')
|
||||
|
@ -29,4 +30,3 @@ class WSLLocaleController(LocaleController):
|
|||
log.debug('Prefilled Language: {}'
|
||||
.format(self.model.selected_language))
|
||||
|
||||
super().start()
|
||||
|
|
Loading…
Reference in New Issue