chore: added estimate bulk endpoint for retrieving and updating (#919)
* chore: added estimate bulk endpoint for retrieving and updating * chore: estimate endpoints * fix: retrieve project estimate * dev: handle integrity error check
This commit is contained in:
parent
0d264838a9
commit
33a904bc3e
5 changed files with 130 additions and 167 deletions
|
|
@ -23,3 +23,16 @@ class EstimatePointSerializer(BaseSerializer):
|
|||
"workspace",
|
||||
"project",
|
||||
]
|
||||
|
||||
|
||||
class EstimateReadSerializer(BaseSerializer):
|
||||
points = EstimatePointSerializer(read_only=True, many=True)
|
||||
|
||||
class Meta:
|
||||
model = Estimate
|
||||
fields = "__all__"
|
||||
read_only_fields = [
|
||||
"points",
|
||||
"name",
|
||||
"description",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue