Update views.py

This commit is contained in:
dinger1986 2024-03-20 20:52:31 +00:00 committed by GitHub
parent 0528ecb454
commit 3a848bc037
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ class GetAddClients(APIView):
if "initialsetup" in request.data.keys():
core = get_core_settings()
core.default_time_zone = request.data["timezone"]
core.save(update_fields=["default_time_zone"])
core.mesh_company_name = request.data["companyname"]
core.save(update_fields=["default_time_zone", "mesh_company_name"])
# save custom fields
if "custom_fields" in request.data.keys():