"""Users Seliralizers"""
#DRF
from rest_framework import serializers
#Models
from cride.betfriends.models import FriendRequest
from cride.users.models import User
#Django
from django.db import models
#Serializer
from cride.users.serializers import UserModelSerializer

class FriendRequestModelSerializer(serializers.ModelSerializer):
  sent_by = UserModelSerializer(read_only = True)
  received_by = UserModelSerializer(read_only = True)

  class Meta:
    model = FriendRequest
    fields= (
      "sent_by", "received_by", "is_accepted", "id"
    )


b99edd278cb1e33861559a7dfd43dc25ccbb00ec
<mask token>

<mask token>


class FriendRequestModelSerializer(serializers.ModelSerializer):
    <mask token>
    <mask token>


    class Meta:
        model = FriendRequest
        fields = 'sent_by', 'received_by', 'is_accepted', 'id'

<mask token>


class FriendRequestModelSerializer(serializers.ModelSerializer):
    sent_by = UserModelSerializer(read_only=True)
    received_by = UserModelSerializer(read_only=True)


    class Meta:
        model = FriendRequest
        fields = 'sent_by', 'received_by', 'is_accepted', 'id'

<mask token>
from rest_framework import serializers
from cride.betfriends.models import FriendRequest
from cride.users.models import User
from django.db import models
from cride.users.serializers import UserModelSerializer


class FriendRequestModelSerializer(serializers.ModelSerializer):
    sent_by = UserModelSerializer(read_only=True)
    received_by = UserModelSerializer(read_only=True)


    class Meta:
        model = FriendRequest
        fields = 'sent_by', 'received_by', 'is_accepted', 'id'

"""Users Seliralizers"""
#DRF
from rest_framework import serializers
#Models
from cride.betfriends.models import FriendRequest
from cride.users.models import User
#Django
from django.db import models
#Serializer
from cride.users.serializers import UserModelSerializer

class FriendRequestModelSerializer(serializers.ModelSerializer):
  sent_by = UserModelSerializer(read_only = True)
  received_by = UserModelSerializer(read_only = True)

  class Meta:
    model = FriendRequest
    fields= (
      "sent_by", "received_by", "is_accepted", "id"
    )

