from rest_framework.serializers import ModelSerializer
from .models import CountInstance


class CountInstanceSerializer(ModelSerializer):
    class Meta:
        model = CountInstance

from rest_framework.serializers import ModelSerializer
from .models import CountInstance


class CountInstanceSerializer(ModelSerializer):
    class Meta:
        model = CountInstance
        fields = ('count_total',)

Update serializer to deal with new model
Update serializer to deal with new model

  from rest_framework.serializers import ModelSerializer
  from .models import CountInstance
  
  
  class CountInstanceSerializer(ModelSerializer):
      class Meta:
          model = CountInstance
+         fields = ('count_total',)
  
Update serializer to deal with new model
## Code Before:
from rest_framework.serializers import ModelSerializer
from .models import CountInstance


class CountInstanceSerializer(ModelSerializer):
    class Meta:
        model = CountInstance

## Instruction:
Update serializer to deal with new model
## Code After:
from rest_framework.serializers import ModelSerializer
from .models import CountInstance


class CountInstanceSerializer(ModelSerializer):
    class Meta:
        model = CountInstance
        fields = ('count_total',)
