favoritecontacts.py 245 B

1234567
  1. from rest_framework import serializers
  2. from dbsynce.models import Favoritecontacts
  3. class FavoritecontactsSerializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = Favoritecontacts
  6. fields= ['full_name','phone_number','id']