chore: create estimate point

This commit is contained in:
NarayanBavisetti 2024-05-27 15:22:27 +05:30
parent 145968a55b
commit be03d90c86

View File

@ -189,10 +189,9 @@ class EstimatePointEndpoint(BaseViewSet):
) )
key = request.data.get("key", 0) key = request.data.get("key", 0)
value = request.data.get("value", "") value = request.data.get("value", "")
estimate_point = EstimatePoint.objects.get( estimate_point = EstimatePoint.objects.create(
estimate_id=estimate_id, estimate_id=estimate_id,
project_id=project_id, project_id=project_id,
workspace__slug=slug,
key=key, key=key,
value=value, value=value,
) )