Skip to content

Commit

Permalink
Merge pull request #38 from QRTaxi/hjRidingStatus
Browse files Browse the repository at this point in the history
feat: 성공페이지 기사 폰번호 추가
  • Loading branch information
leehjhjhj authored Aug 15, 2023
2 parents 35481d8 + 52962cf commit cddf0ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions call/serializers/call_success_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from driver.models import CustomDriver

class CallSuccessDriverInfoSerializer(serializers.ModelSerializer):

driver_phone = serializers.CharField(source='phone_num', read_only=True)
class Meta:
model = CustomDriver
fields = ("id" ,"name", "taxi_num", "car_type",)
fields = ("id" ,"name", "taxi_num", "car_type", "driver_phone")

class CallSuccessGetSerializer(serializers.ModelSerializer):
driver_id = CallSuccessDriverInfoSerializer()
Expand Down

0 comments on commit cddf0ca

Please sign in to comment.