Skip to content

Commit

Permalink
add contact serializer to rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo committed Sep 26, 2024
1 parent f3f4346 commit 7447f70
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions grantpicks/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Meta:
'admins',
]


class RoundSerializer(ModelSerializer):
current_vault_balance_usd = TwoDecimalPlacesField(max_digits=20, decimal_places=2)
vault_total_deposits_usd = TwoDecimalPlacesField(max_digits=20, decimal_places=2)
Expand Down Expand Up @@ -103,6 +104,7 @@ class Meta:
remaining_dist_address = AccountSerializer()
admins = AccountSerializer(many=True)
remaining_dist_by = AccountSerializer()
contacts = ProjectContactSerializer(many=True, required=False)


class RoundApplicationSerializer(ModelSerializer):
Expand Down Expand Up @@ -135,7 +137,13 @@ class Meta:
"overview": "This project aims to do something impactful.",
"owner": "GD4I4FXMIKKKVSGVCGNILRFFHDQHITMDW545SCLGEOKGBN6W44AV6367",
"payout_address": "GD4I4FXMIKKKVSGVCGNILRFFHDQHITMDW545SCLGEOKGBN6W44AV6367",
"contacts": [],
"contacts": [
{
"id": 2,
"name": "Email",
"value": "dvorak@gmail.com"
}
],
"contracts": [],
"team_members": [],
"repositories": [],
Expand All @@ -149,7 +157,13 @@ class Meta:
"id": 1,
"name": "InteractGrant TO Apply V1",
"owner": "GD4I4FXMIKKKVSGVCGNILRFFHDQHITMDW545SCLGEOKGBN6W44AV6367",
"contacts": [],
"contacts": [
{
"id": 2,
"name": "Email",
"value": "dvorak@gmail.com"
}
],
"use_vault": True,
"description": "This is a test round",
"use_whitelist": False,
Expand Down

0 comments on commit 7447f70

Please sign in to comment.