Django.fun

How to set for image in VersatileImageField

I am using VersatileImageField for my image field in Django models. I want to set a default image like we do normally in an ImageField. I have tried using default='' in VersatileImageField but it doesn't work. Following is my models.py

from django.db import models
from django.contrib.auth.models import User

from versatileimagefield.fields import VersatileImageField, PPOIField


class Image(models.Model):

    image = VersatileImageField(
        'Image',
        upload_to='images/',
        default='default.jpg',
        ppoi_field='image_ppoi'
    )
    image_ppoi = PPOIField()


class Category(models.Model):
    name = models.CharField(max_length=100)

    def __str__(self):
        return self.name


class Post(models.Model):

    class PostObjects(models.Manager):
        def get_queryset(self):
            return super().get_queryset().filter(status='published')

    options = (
        ('published', 'Published'),
        ('draft', 'Draft')
    )

    category = models.ForeignKey(Category, on_delete=models.PROTECT, default=1)
    title = models.CharField(max_length=100)
    excerpt = models.TextField(null=True)
    content = models.TextField()

    published = models.DateField(auto_now_add=True, editable=False)
    modified_on = models.DateField(auto_now_add=True)
    image = models.ManyToManyField(Image, related_name='products')
    author = models.ForeignKey(
        User, on_delete=models.CASCADE, related_name='blog_posts', default=1)
    status = models.CharField(
        max_length=10, choices=options, default='published')
    objects = models.Manager()
    postobjects = PostObjects()

    class Meta:
        ordering = ('-published',)

    def __str__(self):
        return self.title

Answers: 0