<reponame>lucasmgana/Pharmacy-Light-weight
from rest_framework import serializers
from backend.models.subscribers import Subscriber

class SubscribersSerializer(serializers.ModelSerializer):
    class Meta:
        model = Subscriber
        fields = ('name', 'contact_method', 'contact_info')
from rest_framework import serializers
from backend.models.subscribers import Subscriber

class SubscribersSerializer(serializers.ModelSerializer):
    class Meta:
        model = Subscriber
        fields = ('name', 'contact_method', 'contact_info')