ArticlesApp
This commit is contained in:
SDE
2023-08-29 11:47:09 +03:00
parent 45001b5d3c
commit 1873933416
2 changed files with 4 additions and 2 deletions

View File

@@ -242,6 +242,8 @@ 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:
obj.owner_type = data['owner_type']
obj.owner = request.user
obj.save()