0.8.40 change profile validation
This commit is contained in:
@@ -78,8 +78,8 @@ 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})
|
||||
if request.user and request.user.is_authenticated and request.user.user_profile and request.user.user_profile.phone:
|
||||
form.initial.update({'phone': request.user.user_profile.phone})
|
||||
|
||||
Dict = {
|
||||
'form': form,
|
||||
|
||||
Reference in New Issue
Block a user