Django easy-thumbnails serialize with Django Rest Framework
问题 The docs on their GitHub page suggests that what I'm trying to do should work: thumb_url = profile.photo['avatar'].url In my project, it gives an error: THUMBNAIL_ALIASES = { '': { 'thumb': {'size': (64, 64), 'upscale': False}, }, } class Image(models.Model): place = models.ForeignKey(Place, models.CASCADE, 'images') image = ThumbnailerImageField(upload_to='') class ImageSerializer(serializers.Serializer): image = serializers.ImageField() thumb = serializers.ImageField(source='image.image[