How to retrieve the url of the uploaded image instead of the id?

I have a Django Restfull Application. And a user can upload images from the Admin panel of Django. But the problem I am facing is that in the corresponding api call. The id’s of the images are displayed instead of the url’s of the images. See the api call below-

imag

is the property:

    {
        "id": 30,
        "name": "Dier",
        "sort": "hghkjhkh",
        "uis": false,
        "cites": "B",
        "pet_list": "nvt",
        "description": "Wat een lekker dier",
        "feeding": "",
        "housing": "",
        "care": "",
        "literature": "",
        "images": "https://dier.blob.core.windows.net/media/media/photos/animals/amphibiance_X04Eh6N_1z0N4Gs_9EPmeMA_6j3axdY_da4cpTO_2VAY67x_hcUVB7f_bv9qvuY.jpg",
        "category": 11,
        "category_name": "mammal",
        "klasse_name": "mammal",
        "hdd_list_remark": "Wat een mooi dier",
        "bird_directive_list": "Bijlage|",
        "Habitat_directive_list": "Bijlage |V",
        "imag": [
            5,
            6
        ],
        
    },

So the corresponding code: model.py:

import sys
from io import BytesIO
from django.core.files.uploadedfile import InMemoryUploadedFile
from django.contrib.auth.models import Permission
from PIL import Image
from django.db import models
from django.conf import settings

class AnimalImage(models.Model):
    animal = models.ForeignKey(
        'Animal', related_name='imag', on_delete=models.CASCADE)
    image = models.ImageField(upload_to='media/photos/animals')

    def __str__(self):
        return f"Image for {self.animal.name}"

class Animal(models.Model):

    images = models.ImageField(
        upload_to="media/photos/animals",   blank=False, null=False, verbose_name="Foto")
    animal_images = models.ManyToManyField(
        AnimalImage, related_name='related_animals', blank=True)

    def img_preview(self):  # new
        return mark_safe(f'<img src = "{self.images.url}" width = "300"/>')
    img_preview.short_description = "Huidige Foto"

    def img_previews(self):
        images = self.images.all()
        return mark_safe(''.join([f'<img src="{img.image.url}" width="100"/>' for img in images]))
    img_previews.short_description = "Thumbnails"

    class Meta:
        verbose_name = "Dier"
        verbose_name_plural = "Dieren"
        # permissions = [("set_display_flag", "Check name is display or not",)]

        super(Animal, self).save()

    def __str__(self):
        return self.name

Serializers.py:

from .models import Animal, Category, AnimalImage
from rest_framework import serializers
from django.contrib.auth.decorators import permission_required


class AnimalImageSerializer(serializers.ModelSerializer):
    class Meta:
        model = AnimalImage
        fields = ['id', 'image']


 class Meta:
        model = AnimalImage
        fields = ['image_url']

        def get_image_url(self, obj):
            return obj.image.url

    @permission_required("can_view_animal")
    def get_animal(self, obj):
        return obj.get_animal_display()


class SubAnimalSerializer(serializers.ModelSerializer):
    category = serializers.SlugRelatedField(
        slug_field='name', queryset=Category.objects.all()
    )
    uis = serializers.SerializerMethodField(method_name='naming_bool')

    class Meta:
        model = Animal

        fields = ['images', "animal_images"]
        read_only_fields = ['id']

    def naming_bool(self, instance):
        if instance.uis == True:
            return "Ja"
        else:
            return "Nee"

Question: How to pass in the api call by the property: imag the url’s of the images instead of the id?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật