🏷️(backend) accept string as saved document

Saved documents has to be a string now.
Before it has to be a json object.
This commit is contained in:
Anthony LC
2024-05-21 14:46:23 +02:00
committed by Anthony LC
parent 7aeea18202
commit 5c9e4ab3e6
7 changed files with 21 additions and 24 deletions

View File

@@ -35,7 +35,7 @@ class DocumentFactory(factory.django.DjangoModelFactory):
title = factory.Sequence(lambda n: f"document{n}")
is_public = factory.Faker("boolean")
content = factory.LazyFunction(lambda: {"foo": fake.word()})
content = factory.Sequence(lambda n: f"content{n}")
@factory.post_generation
def users(self, create, extracted, **kwargs):