Django Not able to add default value to VersatileImageField

class Product(models.Model):
    name=models.CharField(max_length=128)
    photo = VersatileImageField(blank=True,null=True,upload_to="Product/",default='default.jpg',ppoi_field='photo_ppoi')
    photo_ppoi=PPOIField()

I am not able to bring default value and ppoi_field together. showing following error .

Error: str object has no attribute ppoi Exception Location : versatileimagefield\widgets.py

Seems like exception throwing while django trying to set ppoi value to string type ('default.jpg') which is set for my default image in media folder

Is there any different way to set default value to versatileImage field . I am wondering ,It works for different projects I have worked on !!

Back to Top