0.5.1
ArticlesApp
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user