Skip to content

Commit 1f7ce24

Browse files
committed
Fix reference to incorrect resource in consumer serializer
1 parent d060fa9 commit 1f7ce24

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

coral_credits/api/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ class Meta:
7373

7474

7575
class Consumer(serializers.ModelSerializer):
76-
resource_provider = ResourceProviderSerializer()
76+
resource_provider_account = ResourceProviderAccountSerializer()
7777
resources = ResourceConsumptionRecord(many=True)
7878

7979
class Meta:
8080
model = models.Consumer
81-
fields = ["consumer_ref", "resource_provider", "start", "end", "resources"]
81+
fields = ["consumer_ref", "resource_provider_account", "start", "end", "resources"]
8282

8383

8484
class ResourceRequestSerializer(serializers.Serializer):

coral_credits/api/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def retrieve(self, request, pk=None):
138138
resources_for_allocation_query, many=True, context={"request": request}
139139
)
140140
allocation["resources"] = resources_for_allocation.data
141-
print(allocation["resources"])
142141
for resource_allocation in allocation["resources"]:
143142
if "resource_hours_remaining" not in resource_allocation:
144143
resource_allocation["resource_hours_remaining"] = (

0 commit comments

Comments
 (0)