0.8.37 owner_type initial
This commit is contained in:
@@ -75,11 +75,17 @@ def get_profile_new_route_page_html(request, data):
|
||||
# if not form.is_valid():
|
||||
# pass
|
||||
|
||||
if 'owner_type' in data:
|
||||
form.initial['owner_type'] = data['owner_type']
|
||||
|
||||
Dict = {
|
||||
'form': form,
|
||||
'errors_off': errors_off
|
||||
}
|
||||
|
||||
if 'owner_type' in data:
|
||||
Dict.update({'owner_type': data['owner_type']})
|
||||
|
||||
# print(form)
|
||||
except Exception as e:
|
||||
# form.errors.append({'__all__': f'Ошибка: {str(e)}'})
|
||||
|
||||
Reference in New Issue
Block a user