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
Is there any different way to set default value to versatileImage field . I am wondering ,It works for different projects I have worked on !!