from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from sinergi.sinergi.models import PegawaiAktif
from navigator.banner.models import Category, Slide


class PegawaiSerializer(ModelSerializer):
    class Meta:
        model = PegawaiAktif
        # fields = '__all__'
        fields = ['nipbaru', 'nama']


class BannerSerializer(ModelSerializer):
    class Meta:
        model = Slide
        fields = '__all__'
