from rest_framework import serializers

from item.models import EssentialItem

class EssentialItemSerializer(serializers.ModelSerializer):
    class Meta:
        model = EssentialItem
        fields = ('id', 'name', 'quantity', 'lat', 'long')
        read_only_fields = ['id','name', 'quantity']
ed1f66f184966ebd5eb8f72f1f9beb3ca92e43ed
<mask token>

<mask token>


class EssentialItemSerializer(serializers.ModelSerializer):


    class Meta:
        model = EssentialItem
        fields = 'id', 'name', 'quantity', 'lat', 'long'
        read_only_fields = ['id', 'name', 'quantity']

from rest_framework import serializers
from item.models import EssentialItem


class EssentialItemSerializer(serializers.ModelSerializer):


    class Meta:
        model = EssentialItem
        fields = 'id', 'name', 'quantity', 'lat', 'long'
        read_only_fields = ['id', 'name', 'quantity']

from rest_framework import serializers

from item.models import EssentialItem

class EssentialItemSerializer(serializers.ModelSerializer):
    class Meta:
        model = EssentialItem
        fields = ('id', 'name', 'quantity', 'lat', 'long')
        read_only_fields = ['id','name', 'quantity']