Skip to content

Commit 4fc33f3

Browse files
committed
Fix: Apply staticmethod to get_remaining method
1 parent 4ec93c5 commit 4fc33f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sponsor/serializers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Meta:
4343
"desc",
4444
"limit",
4545
"id",
46-
] # TODO: Add fields to show
46+
] # TODO: Add fields to show
4747

4848

4949
class SponsorRemainingAccountSerializer(ModelSerializer):
@@ -59,5 +59,6 @@ class Meta:
5959
"id",
6060
]
6161

62-
def get_remaining(self, obj):
62+
@staticmethod
63+
def get_remaining(obj):
6364
return obj.current_remaining_number

0 commit comments

Comments
 (0)