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')
Source:stackexchange.com