mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
18 lines
362 B
Python
18 lines
362 B
Python
from factory import Faker
|
|
from factory.django import DjangoModelFactory
|
|
|
|
from documents.models import Correspondent
|
|
from documents.models import Document
|
|
|
|
|
|
class CorrespondentFactory(DjangoModelFactory):
|
|
class Meta:
|
|
model = Correspondent
|
|
|
|
name = Faker("name")
|
|
|
|
|
|
class DocumentFactory(DjangoModelFactory):
|
|
class Meta:
|
|
model = Document
|