from rest_framework import serializers
from .models import *

from django.db import models
from django.contrib.auth.models import User
from rest_framework.permissions import BasePermission



class FAQSerializer(serializers.ModelSerializer):
    class Meta:
        model = Faq
        # fields = ('id', 'name', 'website', 'city')
        fields = '__all__'


class SocialPostSerializer(serializers.ModelSerializer):
    class Meta:
        model = SocialPost
        # fields = ('id', 'name', 'website', 'city')
        fields = '__all__'


class SocialLinkSerializer(serializers.ModelSerializer):
    # target_language = serializers.SerializerMethodField()
    class Meta:
        model = SocialLink
        fields = '__all__'
        # depth = 2
#        fields = ('id', 'name',)


class SocialImgsSerializer(serializers.ModelSerializer):
    # target_language = serializers.SerializerMethodField()
    class Meta:
        model = SocialImg
        fields = '__all__'
        # depth = 2
#        fields = ('id', 'name',)
