text: from rest_framework import serializers
  from .models import Post
  from users.models import Profile
  
  
  class PostSerializer(serializers.ModelSerializer):
      class Meta:
          model=Post
          fields='__all__'
  
  class ProfileSerializer(serializers.ModelSerializer):
      class Meta:
          model=Profile
          fields='__all__'        
  