I have a model Product as below:
class Product(models.Model):
description = QuillField(null=True, blank=True)
In Django views how can I save html data in it ?
product = Product.objects.get(id=...)
product.description = '<p> this is a test </p>'
product.save()
But I am getting an error: can't parse value
You need to wrap the content in a JSON blob, so: