Berechnete Felder in Modellen
def display_a_capacity_request(request, id):
capacity_request = CapacityRequest.objects.get(id=id)
diskspace_gb_vswap = capacity.diskspace_gb_vswap()
context = {'capacity': capacity_request,
'vswap': diskspace_gb_vswap}
return render(request, 'capacity_detail.html', context)
Crowded Chipmunk