def get_elements(request):
"""View function for getting all existed elements (lines) of the scheme of the specific plan"""
data = request.GET
plan = get_object_or_404(Plan, pk=data.get("plan"))
v = Element.objects.filter(plan=plan)
return ...