[Django]-Django Rest Framework : Serializer doesn't find attributes

3👍

Get rid of restore_object as you are using a Model it’s not needed. Use the modelSerializer instead.

class AddressSerializer(serializers.ModelSerializer):

    class Meta:
        model = Address
        fields = ('id', 'address_complete', 'door_code')

Leave a comment