0.8.38 change profile validation

This commit is contained in:
SDE
2023-12-15 15:11:35 +03:00
parent a3faa17754
commit 9c971a6fa4
6 changed files with 46 additions and 3 deletions

View File

@@ -78,6 +78,9 @@ def get_profile_new_route_page_html(request, data):
if 'owner_type' in data:
form.initial['owner_type'] = data['owner_type']
if request.user and request.user.is_authenticated and request.user.profile and request.user.profile.phone:
form.initial.update({'phone': request.user.profile.phone})
Dict = {
'form': form,
'errors_off': errors_off