NotImplementedError at /api/items/
subclasses of Storage must provide an exists() method
// models.py
class Class:
image = VersatileImageField(storage=AWSStorage(), blank=True)
// serializers.py
class ItemsSerializer(serializers.ModelSerializer):
image = VersatileImageFieldSerializer(
sizes=[
('full_size', 'url'),
('thumbnail', 'thumbnail__100x100'),
('medium_square_crop', 'crop__400x400'),
('small_square_crop', 'crop__50x50')
]
)
class Meta:
model = Items
fields = (
'title',
'image'
)
image = ThumbnailerImageField(
thumbnail_storage=AWSStorage(),
storage=AWSStorage(),
resize_source=dict(size=(100, 100), sharpen=True),
blank=True)
THUMBNAIL_ALIASES = {
'image': {
'items': {'size': (50, 50), 'crop': True},
'item': {'size': 150},
},
}
- не помогает