<reponame>sjdhaneesh10/mezan<filename>mezan/member/serializer.py
from rest_framework import serializers
from .models import Family

class FamilySerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(read_only=True)
    class Meta:
        model = Family
        #exclude = ['patient_image','patient_address']
        fields = '__all__'
        '''
        (
            'id', 'patient_name','patient_dob'
        )
        '''
        datatables_always_serialize = ('id', )
from rest_framework import serializers
from .models import Family

class FamilySerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(read_only=True)
    class Meta:
        model = Family
        #exclude = ['patient_image','patient_address']
        fields = '__all__'
        '''
        (
            'id', 'patient_name','patient_dob'
        )
        '''
        datatables_always_serialize = ('id', )
#exclude = ['patient_image','patient_address'] (             'id', 'patient_name','patient_dob'         )