I have a field in my model with JSONField Type(MYSQL Implementation). I want to fake the data for this field using FactoryBoy Faker.
How can I achieve this?
I have a field in my model with JSONField Type(MYSQL Implementation). I want to fake the data for this field using FactoryBoy Faker.
How can I achieve this?
You can resolve this issue by creating a function that returns a dict instead of a single string, data is a JSONField in the User model. You can also use this same code with PostgreSql JSONField it also returns a dict in the model field.