0.10.2 mail alert by new routes

This commit is contained in:
SDE
2024-01-11 19:03:25 +03:00
parent ad909b98bf
commit 6c1011e59e
13 changed files with 267 additions and 22 deletions

View File

@@ -230,7 +230,7 @@ def create_or_change_route_ajax(request, route_id=None):
return JsonResponse({'html': html}, status=400)
obj = form.save(commit=False)
if 'owner_type' in data:
if 'owner_type' in data and data['owner_type']:
obj.owner_type = data['owner_type']
if obj.from_address_point: