Fix variable name

This commit is contained in:
PCoder 2020-12-07 10:40:55 +05:30
parent 591f5ff37b
commit bbb51b71a6

View file

@ -25,7 +25,7 @@ class Command(BaseCommand):
template_str = options['template'] template_str = options['template']
json_acceptable_string = user_str.replace("'", "\"") json_acceptable_string = user_str.replace("'", "\"")
user = json.loads(json_acceptable_string) user_dict = json.loads(json_acceptable_string)
json_acceptable_string = specs_str.replace("'", "\"") json_acceptable_string = specs_str.replace("'", "\"")
specs = json.loads(json_acceptable_string) specs = json.loads(json_acceptable_string)
@ -46,13 +46,13 @@ class Command(BaseCommand):
return return
user = { user = {
'name': user['name'], 'name': user_dict['name'],
'email': user['email'], 'email': user_dict['email'],
'username': user['username'], 'username': user_dict['username'],
'pass': user['pass'], 'pass': user_dict['pass'],
'request_scheme': user['request_scheme'], 'request_scheme': user_dict['request_scheme'],
'request_host': user['request_host'], 'request_host': user_dict['request_host'],
'language': user['language'], 'language': user_dict['language'],
} }
on_user = user.get('username') on_user = user.get('username')