Skip to content

Commit

Permalink
Merge pull request #36 from AUTGamecraft/excel
Browse files Browse the repository at this point in the history
final
  • Loading branch information
Javad-Ak authored Oct 2, 2024
2 parents 0b6cf38 + 7e3493a commit 4dfbe1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_state(self, obj):
return obj.get_state_display()

def get_payment_state(self, obj):
obj.get_payment_state()
return obj.get_payment_state()

state = serializers.SerializerMethodField()
payment_state = serializers.SerializerMethodField()
Expand All @@ -69,7 +69,7 @@ def get_payment_state(self, obj):
class Meta:
model = Team
fields = ['members', 'state', 'emails', 'name', 'pk', 'payment_state']
extra_kwargs = {'pk': {'read_only': True}}
extra_kwargs = {'pk': {'read_only': True}, 'payment_state': {'read_only': True}}

def create(self, validated_data):
val = deepcopy(validated_data)
Expand Down

0 comments on commit 4dfbe1f

Please sign in to comment.